I'm trying to run my simple userTest
class 'test_helper' requirement UserTest & lt; ActiveSupport :: Test Season fixtures: User testing "user attributes should not be blank" user = user (: valid_user) insists on user.invalid? the user. Monsters [: Nom] says. someone? the user. Claim the monsters: [Cognific]. What? Tell the user. Errs [: Locality]. someone? the user. Errs [: Provincial]. the user. Demon [. the user. Claim the error [: cap]. someone? Tell the user. Errors [: Indirizo]. What? Tell the user. Errs [: civico]. someone? Tell the user. Errors [: Telephones]. someone? User.errors [: Mail] Claims. someone? the user. Errors [: username]. User.errors [: Password] Emphasis Any? With this user
valid_user: noam: proma cognom: prah locality: province province: provision jangian: crop hat: 00000 insurer: strada di prova Civico: 1 telefono: 1111111111 Mail: prova@prova.com Username: Prava Password: Praha but it returns this error:
Loaded suite /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_test_loader Start F expired in 0.182523 seconds.
1) Failure: test_user_attributes_must_not_be_empty (UserTest) [.. /unit/user_test.rb: 10]: Failed claim, no message delivered.
1 test, 2 claims, 1 failures, 0 errors, 0 pauses
What is the problem?
Good, unsuccessful claim
insists the user. Errors [: nome] .Any? Which means there are no errors on the attribute: NOM
Why are you saying that there should be errors on that attribute? I have a complete secret.
Maybe you errors [: noam] .one? ?
Comments
Post a Comment