aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration/auth_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/auth_test.rb')
-rw-r--r--test/integration/auth_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/auth_test.rb b/test/integration/auth_test.rb
index 3e98788..285fdbe 100644
--- a/test/integration/auth_test.rb
+++ b/test/integration/auth_test.rb
@@ -31,4 +31,12 @@ class TestAuth < CapybaraTestCase
assert_equal 200, page.status_code
end
+
+ def test_logout
+ login_with_correct_credentials
+ visit '/logout'
+
+ assert_text 'Login'
+ assert_equal '/', current_path
+ end
end