diff options
author | Garen Torikian <gjtorikian@gmail.com> | 2016-03-07 12:43:46 -0800 |
---|---|---|
committer | Garen Torikian <gjtorikian@gmail.com> | 2016-03-07 12:43:46 -0800 |
commit | 390d87a1b48643fcd34cdf7bd045cc60e1f4c1dd (patch) | |
tree | 3163f12d7bd3b480b5596763beace1bc6c6a10c7 | |
parent | 19dbd8701bd957bed8b0391a593eacea3f913d91 (diff) | |
download | rack-390d87a1b48643fcd34cdf7bd045cc60e1f4c1dd.tar.gz |
Tweak `nil` `HTTP_AUTHORIZATION` test
-rw-r--r-- | test/spec_auth_basic.rb | 5 |
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 |