Fixed test/functional/sessions_test.rb breaking when run alone (#12285)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10784 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Baptiste Barth 2012-11-01 13:23:57 +00:00
parent 9280182bde
commit 3ac94be04b
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,8 @@ require File.expand_path('../../test_helper', __FILE__)
class SessionStartTest < ActionController::TestCase
tests AccountController
fixtures :users
def test_login_should_set_session_timestamps
post :login, :username => 'jsmith', :password => 'jsmith'
assert_response 302
@ -32,6 +34,8 @@ end
class SessionsTest < ActionController::TestCase
tests WelcomeController
fixtures :users
def test_atime_from_user_session_should_be_updated
created = 2.hours.ago.utc.to_i
get :index, {}, {:user_id => 2, :ctime => created, :atime => created}