Adds a message for when assertion fails.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9554 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-04-27 21:08:34 +00:00
parent 705b6b16a5
commit ee0d4a12a3
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ class AccountTest < ActionController::IntegrationTest
assert_template 'my/page'
assert_equal user.id, session[:user_id]
assert_not_nil user.reload.last_login_on
assert user.last_login_on.utc > 10.second.ago.utc
seconds_ago = 10.second.ago.utc
assert user.last_login_on.utc > 10.second.ago.utc, "#{user.last_login_on.utc} was not > #{seconds_ago}"
end
def test_lost_password