summary refs log tree commit
diff options
context:
space:
mode:
authorGaren Torikian <gjtorikian@gmail.com>2016-03-07 12:43:46 -0800
committerGaren Torikian <gjtorikian@gmail.com>2016-03-07 12:43:46 -0800
commit390d87a1b48643fcd34cdf7bd045cc60e1f4c1dd (patch)
tree3163f12d7bd3b480b5596763beace1bc6c6a10c7
parent19dbd8701bd957bed8b0391a593eacea3f913d91 (diff)
downloadrack-390d87a1b48643fcd34cdf7bd045cc60e1f4c1dd.tar.gz
Tweak `nil` `HTTP_AUTHORIZATION` test
-rw-r--r--test/spec_auth_basic.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/spec_auth_basic.rb b/test/spec_auth_basic.rb
index 59b55cb3..45d28576 100644
--- a/test/spec_auth_basic.rb
+++ b/test/spec_auth_basic.rb
@@ -75,11 +75,10 @@ describe Rack::Auth::Basic do
     end
   end
 
-  it 'return 400 Bad Request for a nil authorization header' do
+  it 'return 401 Bad Request for a nil authorization header' do
     request 'HTTP_AUTHORIZATION' => nil do |response|
       response.must_be :client_error?
-      response.status.must_equal 400
-      response.wont_include 'WWW-Authenticate'
+      response.status.must_equal 401
     end
   end