diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-24 11:25:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-24 11:25:48 +0000 |
commit | 7fd88d706f66c723cd60a30756209ba3b1af9304 (patch) | |
tree | efb1e884b06b729a699ae03073d39e79c88895a3 | |
parent | a6a10bf29d13aa8835c909b6230ece4376bb4ce5 (diff) | |
download | redmine-7fd88d706f66c723cd60a30756209ba3b1af9304.tar.gz redmine-7fd88d706f66c723cd60a30756209ba3b1af9304.zip |
Compare timestamps in seconds (#21058).
git-svn-id: http://svn.redmine.org/redmine/trunk@14742 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/sessions_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/sessions_controller_test.rb b/test/functional/sessions_controller_test.rb index b4adda7fd..c040d6ccf 100644 --- a/test/functional/sessions_controller_test.rb +++ b/test/functional/sessions_controller_test.rb @@ -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 |