From 3ac94be04b938e7ccaef3ff07e67a6459be93223 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Thu, 1 Nov 2012 13:23:57 +0000 Subject: 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 --- test/functional/sessions_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/functional') 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} -- cgit v1.2.3