mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add assertion for get? method into test cases
This commit is contained in:
parent
852460852c
commit
01d4e060e2
1 changed files with 1 additions and 0 deletions
|
@ -663,6 +663,7 @@ class RequestMethod < BaseRequestTest
|
|||
|
||||
assert_equal 'GET', request.request_method
|
||||
assert_equal 'GET', request.env["REQUEST_METHOD"]
|
||||
assert request.get?
|
||||
end
|
||||
|
||||
test "invalid http method raises exception" do
|
||||
|
|
Loading…
Reference in a new issue