Posts tagged rails

Mar01

Bluepill, Upstart, and Delayed Job

rails linux bluepill upstart delayed_job | comments

Recently I’ve had to use delayed_job (which you should be using too!), and rather than have capistrano start delayed job on deploy, I figured I should look into using a process manager, and since I’m a Ruby guy, I decided to see what was available to “gem install”.

Continue reading »

Dec14

Testing JSON/XML responses in Rails

rails test spec | comments

Recently I had to find out how to test the output of a rails controller when the json format is specified. I’m using rspec by the way, but this should work in other frameworks as well.

My instinct, which was wrong, was to do what we do all over the rest of rails:

Continue reading »

Oct23

Testing Authlogic with Factory Girl

rails rspec authlogic factory_girl | comments

There’s an interesting gotcha about testing Authlogic with factory_girl that I just ran into and spent a half hour trying to figure it out.

Continue reading »