mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 00:06:01 +01:00
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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user