[rspec-users] before_save model callback rspec testing

Csongor Bartus lists at ruby-forum.com
Tue Jun 24 03:56:10 EDT 2008

Yi Wen wrote:
> Well, at least now we know this is nothing to do with RSpec. My
> suggestion is that you comment out the code which will be executed
> during a creation, bit by bit in User (such as before_save) and try to
> create a user. In this way you can pinpoint where the problem is.

Thanks a lot Yi Wen,

Now I'll find out easier where the bug lies ...
But how did you realized the bug is not in RSpec but in the code?

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

More information about the rspec-users mailing list