diff options
author | Stan Hu <stanhu@gmail.com> | 2015-06-20 07:18:24 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-06-20 07:23:46 +0300 |
commit | e785b9d2e24ca7e16e8ff3fa46f2e2b82478be9b (patch) | |
tree | 06f762b77dee4c8a05fecd4dd42d0b1dfefee5e5 /spec/support/login_helpers.rb | |
parent | 74a6732c0dfc1416cad382203544d9c4d6246f58 (diff) |
Fix Error 500 when one user attempts to access a personal, internal snippet
Closes #1815
Diffstat (limited to 'spec/support/login_helpers.rb')
-rw-r--r-- | spec/support/login_helpers.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index 1bd68552012..ffe30a4246c 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -39,4 +39,9 @@ module LoginHelpers def logout find(:css, ".fa.fa-sign-out").click end + + # Logout without JavaScript driver + def logout_direct + page.driver.submit :delete, '/users/sign_out', {} + end end |