summary refs log tree commit
path: root/test/spec_response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec_response.rb')
-rw-r--r--test/spec_response.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/spec_response.rb b/test/spec_response.rb
index 7ba1e0e1..0ba17b15 100644
--- a/test/spec_response.rb
+++ b/test/spec_response.rb
@@ -216,6 +216,11 @@ describe Rack::Response do
     res.should.be.client_error
     res.should.be.bad_request
 
+    res.status = 401
+    res.should.not.be.successful
+    res.should.be.client_error
+    res.should.be.unauthorized
+
     res.status = 404
     res.should.not.be.successful
     res.should.be.client_error