From 934a7615c427caf120b5386e62aa159b8d79949f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Oct 2015 08:30:32 +0000 Subject: [PATCH] Test failure. git-svn-id: http://svn.redmine.org/redmine/trunk@14744 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/sessions_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/sessions_controller_test.rb b/test/functional/sessions_controller_test.rb index c040d6ccf..4911d1de3 100644 --- a/test/functional/sessions_controller_test.rb +++ b/test/functional/sessions_controller_test.rb @@ -32,8 +32,8 @@ class SessionsControllerTest < ActionController::TestCase end def test_session_token_should_be_updated - created = 10.hours.ago - token = Token.create!(:user_id => 2, :action => 'session', :created_on => created, :updated_on => created) + token = Token.create!(:user_id => 2, :action => 'session', :created_on => 10.hours.ago, :updated_on => 10.hours.ago) + created = token.reload.created_on get :index, {}, {:user_id => 2, :tk => token.value} assert_response :success -- 2.39.5