diff options
-rw-r--r-- | actionpack/test/controller/http_token_authentication_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/controller/http_token_authentication_test.rb b/actionpack/test/controller/http_token_authentication_test.rb index 6282ad8a1d..ad4e743be8 100644 --- a/actionpack/test/controller/http_token_authentication_test.rb +++ b/actionpack/test/controller/http_token_authentication_test.rb @@ -80,11 +80,11 @@ class HttpTokenAuthenticationTest < ActionController::TestCase end test "authentication request with badly formatted header" do - @request.env['HTTP_AUTHORIZATION'] = "Token foobar" - get :index + @request.env['HTTP_AUTHORIZATION'] = "Token foobar" + get :index - assert_response :unauthorized - assert_equal "HTTP Token: Access denied.\n", @response.body, "Authentication header was not properly parsed" + assert_response :unauthorized + assert_equal "HTTP Token: Access denied.\n", @response.body, "Authentication header was not properly parsed" end test "authentication request without credential" do |