aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2017-07-01 13:10:05 -0400
committerGitHub <noreply@github.com>2017-07-01 13:10:05 -0400
commitc197418bdbb0c5546964bfc234d056edaa69eae2 (patch)
tree9fb085e96e4de9d3a3bc6db80152944705ba3d84 /actionpack/test
parent310918f6a194bf5752fe1025930881756f5d8a8e (diff)
parent1aea1ddd2a4b3bfa7bb556e4c7cd40f9531ac2e3 (diff)
downloadrails-c197418bdbb0c5546964bfc234d056edaa69eae2.tar.gz
rails-c197418bdbb0c5546964bfc234d056edaa69eae2.tar.bz2
rails-c197418bdbb0c5546964bfc234d056edaa69eae2.zip
Merge pull request #29622 from yalab/warning_system_tesing_http_verb
Warning http verb method call in SystemTestCase
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/system_testing/system_test_case_test.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/system_testing/system_test_case_test.rb b/actionpack/test/dispatch/system_testing/system_test_case_test.rb
index 8f90e45f5f..53f1a1bb37 100644
--- a/actionpack/test/dispatch/system_testing/system_test_case_test.rb
+++ b/actionpack/test/dispatch/system_testing/system_test_case_test.rb
@@ -31,3 +31,35 @@ class SetHostTest < DrivenByRackTest
assert_equal "http://example.com", Capybara.app_host
end
end
+
+class UndefMethodsTest < DrivenBySeleniumWithChrome
+ test "get" do
+ assert_raise NoMethodError do
+ get "http://example.com"
+ end
+ end
+
+ test "post" do
+ assert_raise NoMethodError do
+ post "http://example.com"
+ end
+ end
+
+ test "put" do
+ assert_raise NoMethodError do
+ put "http://example.com"
+ end
+ end
+
+ test "patch" do
+ assert_raise NoMethodError do
+ patch "http://example.com"
+ end
+ end
+
+ test "delete" do
+ assert_raise NoMethodError do
+ delete "http://example.com"
+ end
+ end
+end