]> source.dussan.org Git - redmine.git/commitdiff
Compare timestamps in seconds (#21058).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Oct 2015 11:25:48 +0000 (11:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Oct 2015 11:25:48 +0000 (11:25 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14742 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/sessions_controller_test.rb

index b4adda7fdc38a7b19cef5609d591a9ec80ca1bb9..c040d6ccf591779e5f214ac029061eebbe735f73 100644 (file)
@@ -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