Browse files

205 no longer returns a body on rack master

  • Loading branch information...
1 parent 5a16e33 commit 2e9534e4dc19817512d34dc05b067302e9f6cf9c @rkh rkh committed Aug 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/helpers_test.rb
View
2 test/helpers_test.rb
@@ -7,7 +7,7 @@ def test_default
end
def status_app(code, &block)
- code += 1 if code == 204 or code == 304
+ code += 2 if [204, 205, 304].include? code
block ||= proc { }
mock_app do
get '/' do

0 comments on commit 2e9534e

Please sign in to comment.