class TestResponseTest

Public Instance Methods

assert_response_code_range(range, predicate) click to toggle source
# File actionpack/test/dispatch/test_response_test.rb, line 6
def assert_response_code_range(range, predicate)
  response = ActionDispatch::TestResponse.new
  (0..599).each do |status|
    response.status = status
    assert_equal range.include?(status), response.send(predicate),
                 "ActionDispatch::TestResponse.new(#{status}).#{predicate}"
  end
end