The popular ruby mocking library, mocha, has a handy feature for testing incovations. The
with method can take a block. This is useful for assert params that you are calling the object with.
Migrating database instances on heroku is surprisingly easy.Read more
Setting up Sidekiq recently forced me to install redis.Sidekiq requires a pretty recent version of redis. One more recent than the package manger on Ubuntu provides. You can use the following script to install a more recent version. It's also useful for other packages you might need more up to date versions of (nginx, postgres, etc...)Read more