aboutsummaryrefslogtreecommitdiffstats
path: root/app.rb
diff options
context:
space:
mode:
authorTeddy Wing2015-12-08 01:10:52 -0500
committerTeddy Wing2015-12-08 01:10:52 -0500
commitcb06860fa4cd9083eb84929a70353ebe7c7cea18 (patch)
treea6c724815535d3721aabf73ad38fdd5e4535db23 /app.rb
parent6b352f5a238524f9031c499191a476debecbc9fb (diff)
downloadRuby-Web-Sessions-Exercise-cb06860fa4cd9083eb84929a70353ebe7c7cea18.tar.bz2
Add test for unrecognised user
When logging in with unrecognised credentials, the response should include "Unrecognized user".
Diffstat (limited to 'app.rb')
-rw-r--r--app.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.rb b/app.rb
index b4630e3..ef95715 100644
--- a/app.rb
+++ b/app.rb
@@ -17,7 +17,7 @@ post '/' do
session[:user] = 1
redirect '/'
else
- 'POST works'
+ 'Unrecognized user'
end
end