@@ -20,6 +20,8 require File.expand_path('../../test_helper', __FILE__) | |||
|
20 | 20 | class SessionStartTest < ActionController::TestCase |
|
21 | 21 | tests AccountController |
|
22 | 22 | |
|
23 | fixtures :users | |
|
24 | ||
|
23 | 25 | def test_login_should_set_session_timestamps |
|
24 | 26 | post :login, :username => 'jsmith', :password => 'jsmith' |
|
25 | 27 | assert_response 302 |
@@ -32,6 +34,8 end | |||
|
32 | 34 | class SessionsTest < ActionController::TestCase |
|
33 | 35 | tests WelcomeController |
|
34 | 36 | |
|
37 | fixtures :users | |
|
38 | ||
|
35 | 39 | def test_atime_from_user_session_should_be_updated |
|
36 | 40 | created = 2.hours.ago.utc.to_i |
|
37 | 41 | get :index, {}, {:user_id => 2, :ctime => created, :atime => created} |
General Comments 0
You need to be logged in to leave comments.
Login now