success?()
Was the response successful?
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 111 def success? (200..299).include?(response_code) end