Failure/Error: @user = User.create!(@attr)

Posted by the_Saint on Stack Overflow See other posts from Stack Overflow or by the_Saint
Published on 2010-12-23T22:48:28Z Indexed on 2010/12/23 22:54 UTC
Read the original article Hit count: 229

Filed under:

I am following railstutorial.org on Chapter 7 and when running tests I get the error

User password encryption has_password? method should be true if the passwords match Failure/Error: @user = User.create!(@attr) undefined method password' for #<User:0xa242d18> # ./spec/models/user_spec.rb:105:inblock (3 levels) in '

line 105 of user_spec.rb:105 is @u @user = User.create!(@attr)ser = User.create!(@attr)

© Stack Overflow or respective owner

Related posts about ruby-on-rails