From: Jean-Philippe Lang Date: Sat, 24 Oct 2015 11:25:48 +0000 (+0000) Subject: Compare timestamps in seconds (#21058). X-Git-Tag: 3.2.0~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7fd88d706f66c723cd60a30756209ba3b1af9304;p=redmine.git Compare timestamps in seconds (#21058). git-svn-id: http://svn.redmine.org/redmine/trunk@14742 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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