That's because you executed the same creation code into the script/console, which has nothing to do with RSpec, and still get the same error message, right?
Yi On Tue, Jun 24, 2008 at 2:56 AM, Csongor Bartus <[EMAIL PROTECTED]> wrote: > 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/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users