From: Jean-Philippe Lang Date: Sun, 25 Oct 2015 08:30:32 +0000 (+0000) Subject: Test failure. X-Git-Tag: 3.2.0~125 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=934a7615c427caf120b5386e62aa159b8d79949f;p=redmine.git Test failure. git-svn-id: http://svn.redmine.org/redmine/trunk@14744 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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