Compare timestamps in seconds (#21058).

git-svn-id: http://svn.redmine.org/redmine/trunk@14742 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-10-24 11:25:48 +00:00
parent a6a10bf29d
commit 7fd88d706f

View File

@@ -38,8 +38,8 @@ class SessionsControllerTest < ActionController::TestCase
get :index, {}, {:user_id => 2, :tk => token.value} get :index, {}, {:user_id => 2, :tk => token.value}
assert_response :success assert_response :success
token.reload token.reload
assert_equal created, token.created_on assert_equal created.to_i, token.created_on.to_i
assert_not_equal created, token.updated_on assert_not_equal created.to_i, token.updated_on.to_i
assert token.updated_on > created assert token.updated_on > created
end end