##// END OF EJS Templates
Fixed test/functional/sessions_test.rb breaking when run alone (#12285)...
Jean-Baptiste Barth -
r10562:3ac94be04b93
parent child
Show More
@@ -20,6 +20,8 require File.expand_path('../../test_helper', __FILE__)
20 class SessionStartTest < ActionController::TestCase
20 class SessionStartTest < ActionController::TestCase
21 tests AccountController
21 tests AccountController
22
22
23 fixtures :users
24
23 def test_login_should_set_session_timestamps
25 def test_login_should_set_session_timestamps
24 post :login, :username => 'jsmith', :password => 'jsmith'
26 post :login, :username => 'jsmith', :password => 'jsmith'
25 assert_response 302
27 assert_response 302
@@ -32,6 +34,8 end
32 class SessionsTest < ActionController::TestCase
34 class SessionsTest < ActionController::TestCase
33 tests WelcomeController
35 tests WelcomeController
34
36
37 fixtures :users
38
35 def test_atime_from_user_session_should_be_updated
39 def test_atime_from_user_session_should_be_updated
36 created = 2.hours.ago.utc.to_i
40 created = 2.hours.ago.utc.to_i
37 get :index, {}, {:user_id => 2, :ctime => created, :atime => created}
41 get :index, {}, {:user_id => 2, :ctime => created, :atime => created}
General Comments 0
You need to be logged in to leave comments. Login now