summaryrefslogtreecommitdiff
path: root/users/test
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-09-03 10:21:14 -0700
committerjessib <jessib@riseup.net>2013-09-03 10:21:14 -0700
commita3e7cf7b667ec2080d8930b3c2659978a4c95a9b (patch)
tree64d7edb777b6a84f3e3aaab264ce0cc1a0e0dc62 /users/test
parentc17edbc069c6dcfc3dd20d8cdfb5922032769a5f (diff)
parent31429466c9e21f3360c9b550fa93170200f15493 (diff)
Merge pull request #79 from azul/cleanup/remove-outdated-controller-actions
Cleanup/remove outdated controller actions
Diffstat (limited to 'users/test')
-rw-r--r--users/test/functional/sessions_controller_test.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/users/test/functional/sessions_controller_test.rb b/users/test/functional/sessions_controller_test.rb
index b22c3a3..a630e6e 100644
--- a/users/test/functional/sessions_controller_test.rb
+++ b/users/test/functional/sessions_controller_test.rb
@@ -41,27 +41,6 @@ class SessionsControllerTest < ActionController::TestCase
assert_json_error :login => I18n.t(:all_strategies_failed)
end
- # Warden takes care of parsing the params and
- # rendering the response. So not much to test here.
- test "should perform handshake" do
- request.env['warden'].expects(:authenticate!)
- # make sure we don't get a template missing error:
- @controller.stubs(:render)
- post :create, :login => @user.login, 'A' => @client_hex
- end
-
- test "should authorize" do
- request.env['warden'].expects(:authenticate!)
- handshake = stub(:to_json => "JSON")
- session[:handshake] = handshake
-
- post :update, :id => @user.login, :client_auth => @client_hex
-
- assert_nil session[:handshake]
- assert_response :success
- assert_json_response handshake
- end
-
test "logout should reset warden user" do
expect_warden_logout
delete :destroy