diff options
author | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2012-11-01 13:23:57 +0000 |
---|---|---|
committer | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2012-11-01 13:23:57 +0000 |
commit | 3ac94be04b938e7ccaef3ff07e67a6459be93223 (patch) | |
tree | f11766bffb92d7d4a327a681a1f58dee081799a3 | |
parent | 9280182bdef826188fe649412bff09f05cbe71e7 (diff) | |
download | redmine-3ac94be04b938e7ccaef3ff07e67a6459be93223.tar.gz redmine-3ac94be04b938e7ccaef3ff07e67a6459be93223.zip |
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
-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} |