mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 10:40:13 +01:00
A few tweaks to get tests running
This commit is contained in:
parent
ac0ff3feaf
commit
6181d42072
3 changed files with 4 additions and 4 deletions
|
|
@ -110,7 +110,7 @@ class LoginControllerTest < ActionController::TestCase
|
|||
|
||||
def test_should_fail_cookie_login
|
||||
users(:other_user).remember_me
|
||||
@request.cookies["auth_token"] = CGI::Cookie.new('name' => 'auth_token', 'value' => 'invalid_auth_token')
|
||||
@request.cookies["auth_token"] = 'invalid_auth_token'
|
||||
get :login
|
||||
assert !@controller.send(:logged_in?)
|
||||
end
|
||||
|
|
@ -139,7 +139,7 @@ class LoginControllerTest < ActionController::TestCase
|
|||
private
|
||||
|
||||
def auth_token_cookie_for(user)
|
||||
CGI::Cookie.new('name' => 'auth_token', 'value' => users(user).remember_token)
|
||||
users(user).remember_token
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue