mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00: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:
parent
a6a10bf29d
commit
7fd88d706f
@ -38,8 +38,8 @@ class SessionsControllerTest < ActionController::TestCase
|
||||
get :index, {}, {:user_id => 2, :tk => token.value}
|
||||
assert_response :success
|
||||
token.reload
|
||||
assert_equal created, token.created_on
|
||||
assert_not_equal created, token.updated_on
|
||||
assert_equal created.to_i, token.created_on.to_i
|
||||
assert_not_equal created.to_i, token.updated_on.to_i
|
||||
assert token.updated_on > created
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user