summaryrefslogtreecommitdiffstats
path: root/test/integration/account_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-27 21:08:34 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-27 21:08:34 +0000
commitee0d4a12a39f078233d78b72f6306a048202d249 (patch)
treedb50389e35d637b66ed6c53ee03f5be242431001 /test/integration/account_test.rb
parent705b6b16a58b6af0f02571e5eede86885e65bf65 (diff)
downloadredmine-ee0d4a12a39f078233d78b72f6306a048202d249.tar.gz
redmine-ee0d4a12a39f078233d78b72f6306a048202d249.zip
Adds a message for when assertion fails.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9554 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/account_test.rb')
-rw-r--r--test/integration/account_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb
index 1e7e3b329..2cfc2be60 100644
--- a/test/integration/account_test.rb
+++ b/test/integration/account_test.rb
@@ -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