Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
#inspect
failures when dealing with requests with method=nil
.
When I was debugging `ActionDispatch::Request` instances in some tests, I noticed IRB complaining that the object did not support `#inspect`, as it was trying to print out the `method` which calls `check_method(nil)` which fails. Don't try to validate `nil` method as it will always fail and appears to be a valid state (when constructing an empty request as in some tests).
- Loading branch information