[rspec-users] Rspec approach to test model

Kaleem Ullah lists at ruby-forum.com
Wed Feb 11 12:57:19 EST 2009

James Byrne wrote:

> I recently installed nakajima-acts_as_fu (0.0.3) gem.  This provides a 
> rather painless way of specifying ActiveRecord model schemata on the fly 
> in your specifications.  You might find it helpful to look into this.
> You will discover that some people favour mocks and stubs when dealing 
> with AR models in tests/specifications and some favour hitting the 
> database. Once you decide on your own preference in this matter the 
> choice of approach is somewhat simplified.

Hi james byrne,

Good to know that.I will surely look for this gem......

Thanks :)

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list