Jan 22 2009

Unit testing your Ruby on Rails plugin

Category: Rails, Rubysiebert @ 12:51 pm

So you want to write some tests for your hot new Rails plugin that extends the behaviour of a ActiveRecord model? The thing is – for it to be decent tests it needs to be functional outside of the context of you Rails application, so you need to create a temporary testing environment. I think there is a few ways to this but the following is what I did.
Continue reading “Unit testing your Ruby on Rails plugin”

Popularity: 16% [?]