Getting the following Failures in my unit test. Can someone point me
in the right direction?:
1) Failure:
test_email_with_invalid_examples(UserTest)
[./test/unit/user_test.rb:134:in
`test_email_with_invalid_examples'
./test/unit/user_test.rb:131:in `each'
./test/unit/user_test.rb:131:in
`test_email_with_invalid_examples']:
<"must be a valid email address"> expected but was
<["must be a valid email address", "must be valid."]>.
I think you must be checking model.errors rather than
model.errors.on(:email). If you post your UserTest for
test_email_with_invalid_examples I might be able to help.
I think I found the problem already. I had two tests that were
checking for the same thing and when I commented out the tests that
returns "must be valid" the failure went away and the test/assertion
passed ok. does that sound right to you? thanks for your help!