summaryrefslogtreecommitdiff
path: root/users/test/functional/v1
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-04-02 16:56:11 +0200
committerAzul <azul@leap.se>2013-04-02 16:56:11 +0200
commitd781dbdd61d1d24ec4828859a28815b55310154d (patch)
tree1e2deca8e62aa804b2babe38f9780089c88f38ff /users/test/functional/v1
parent62c48c5a14ea0c1221216c3e40eb82ef594f2771 (diff)
send more meaningful error message on completely failed login attempt
Diffstat (limited to 'users/test/functional/v1')
-rw-r--r--users/test/functional/v1/sessions_controller_test.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/users/test/functional/v1/sessions_controller_test.rb b/users/test/functional/v1/sessions_controller_test.rb
index 535da52..1226c9d 100644
--- a/users/test/functional/v1/sessions_controller_test.rb
+++ b/users/test/functional/v1/sessions_controller_test.rb
@@ -11,22 +11,6 @@ class V1::SessionsControllerTest < ActionController::TestCase
@client_hex = 'a123'
end
- test "renders json" do
- request.env['warden'].expects(:winning_strategy)
- get :new, :format => :json
- assert_response :success
- assert_json_error nil
- end
-
- test "renders warden errors" do
- strategy = stub :message => {:field => :translate_me}
- request.env['warden'].stubs(:winning_strategy).returns(strategy)
- I18n.expects(:t).with(:translate_me).at_least_once.returns("translation stub")
- get :new, :format => :json
- assert_response 422
- assert_json_error :field => "translation stub"
- end
-
# Warden takes care of parsing the params and
# rendering the response. So not much to test here.
test "should perform handshake" do