1
0
Fork 0
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:
Mehmet Emin İNAÇ 2015-05-27 15:54:56 +03:00
parent 852460852c
commit 01d4e060e2

View file

@ -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