diff options
-rw-r--r-- | test/functional/sessions_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/sessions_test.rb b/test/functional/sessions_test.rb index d469f5050..2d4066ad0 100644 --- a/test/functional/sessions_test.rb +++ b/test/functional/sessions_test.rb @@ -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} |