Topic: Syntax Question Two Errors Returned
I'm new to testing, and have an assertion which returns two errors. I don't seem to be able to get the formatting for two errors right, just wondering if anyone can provide a hint? Thanks ahead. The test is failing as it expects only one of the errors, but returns the other... and putting them in parentheses hasn't worked for me yet either. I've had a quick look online but couldn't find anything. http://manuals.rubyonrails.com is down at the moment.
user = User.new(:email => "email@example.com", :password => "")
assert_equal "email and password must be provided.",
"needs to be at least 5 characters long.",