[rspec-users] before_save model callback rspec testing
lists at ruby-forum.com
Mon Jun 23 11:26:00 EDT 2008
Yi Wen wrote:
> You don't have attr_accessor :password, :password_confirmation in
> User, do you? You may want to add this and try again
I had :password, I've added :password_confirmation but still the same:
>> u = User.create!(:login => "test", :email => "test at test.com", :password => "test123", :password_confirmation => "test123")
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each
Posted via http://www.ruby-forum.com/.
More information about the rspec-users