Displaying 2 results from an estimated 2 matches for "test_passwordchang".
Did you mean:
test_passwordchange
2006 Jul 02
2
NoMethodError in Unit Test - Rails Newcomer
...onfirmation = "newlongpassword"
assert @longbob.save
c = Customer.new
c.email_address = "jimbo@mcjim.com"
# ok
c.password = c.password_confirmation = "magicwand"
assert c.save
The error I keep getting is this (it happens in all of my tests):
4) Error:
test_passwordchange(CustomerTest):
NoMethodError: undefined method `password='' for #<Customer:0x343de40>
C:/Program
Files/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1789:in
`method_missing''
test/unit/customer_test.rb:28:in `test_passwordchange''...
2006 Apr 13
3
Salted Hash Login Generator problem
...;"0",
"token_expiry"=>nil,
"verified"=>"1",
"salted_password"=>"ef94c16f6c124a4e84cc215c164767bfa25f6e92",
"login"=>"bob",
"email"=>"bob@test.com"}>>.
2) Error:
test_passwordchange(UserTest):
NoMethodError: You have a nil object when you didn''t expect it!
The error occured while evaluating nil.change_password
./test/unit/user_test.rb:17:in `test_passwordchange''
14 tests, 27 assertions, 1 failures, 1 errors
rake aborted!
Command failed with status (1):...