mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-14 08:26:16 +01:00
Fixed a regression in the trunk in which a fresh installation (with no users) generated an error on visiting /signup, because @user was nil.
My changes to signup are a little verbose, but they work. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@222 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
e1cb2b0f29
commit
5a331c0a66
3 changed files with 21 additions and 8 deletions
|
|
@ -23,7 +23,7 @@ class LoginControllerTest < Test::Unit::TestCase
|
|||
def test_invalid_login
|
||||
post :login, {:user_login => 'cracker', :user_password => 'secret', :user_noexpiry => 'on'}
|
||||
assert_response :success
|
||||
assert_session_has_no :user
|
||||
assert_session_has_no :user_id
|
||||
assert_template "login"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue