summaryrefslogtreecommitdiff
path: root/users/test/functional/sessions_controller_test.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-11-04 09:05:03 -0800
committerjessib <jessib@riseup.net>2013-11-04 09:05:03 -0800
commitd4f835662fac2d9dca705b5cba2e207562dec833 (patch)
tree23625c0daafbaade2a1aeb9bf9b17070f1f67d51 /users/test/functional/sessions_controller_test.rb
parent7aaedeaf6fdd2d84ebab7bde2f6a6bdcf8d930b8 (diff)
parentf6924bfe3b540c384fa53e55db9db3a64a34ced3 (diff)
Merge pull request #108 from azul/feature/proper-user-deletion
notify user their account was successfully deleted (refs #4216)
Diffstat (limited to 'users/test/functional/sessions_controller_test.rb')
-rw-r--r--users/test/functional/sessions_controller_test.rb14
1 files changed, 3 insertions, 11 deletions
diff --git a/users/test/functional/sessions_controller_test.rb b/users/test/functional/sessions_controller_test.rb
index a630e6e..28143da 100644
--- a/users/test/functional/sessions_controller_test.rb
+++ b/users/test/functional/sessions_controller_test.rb
@@ -41,20 +41,12 @@ class SessionsControllerTest < ActionController::TestCase
assert_json_error :login => I18n.t(:all_strategies_failed)
end
- test "logout should reset warden user" do
- expect_warden_logout
+ test "destory should logout" do
+ login
+ expect_logout
delete :destroy
assert_response :redirect
assert_redirected_to root_url
end
- def expect_warden_logout
- raw = mock('raw session') do
- expects(:inspect)
- end
- request.env['warden'].expects(:raw_session).returns(raw)
- request.env['warden'].expects(:logout)
- end
-
-
end