Methods
Instance Public methods
assert_response_code_range(range, predicate)
Link
# File actionpack/test/dispatch/test_response_test.rb, line 4 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