git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10784
e93f8b46-1217-0410-a6f0-
8f06a7374b81
class SessionStartTest < ActionController::TestCase
tests AccountController
+ fixtures :users
+
def test_login_should_set_session_timestamps
post :login, :username => 'jsmith', :password => 'jsmith'
assert_response 302
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}