aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/system_testing
diff options
context:
space:
mode:
authoryalab <rudeboyjet@gmail.com>2017-10-06 15:25:28 +0900
committeryalab <rudeboyjet@gmail.com>2017-10-08 23:48:22 +0900
commit54b18a2149537afd516262fd8c4d4ad5e6f4e6d2 (patch)
tree74b82bc7e13bc988fe3b7e40938504e1c4803aa4 /actionpack/lib/action_dispatch/system_testing
parent883d83bf727b23d9c9d10a3366441468d1273b02 (diff)
downloadrails-54b18a2149537afd516262fd8c4d4ad5e6f4e6d2.tar.gz
rails-54b18a2149537afd516262fd8c4d4ad5e6f4e6d2.tar.bz2
rails-54b18a2149537afd516262fd8c4d4ad5e6f4e6d2.zip
Exception message for SystemTestCase#get etc..
Diffstat (limited to 'actionpack/lib/action_dispatch/system_testing')
-rw-r--r--actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb b/actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
index ef680cafed..d64be3b3d9 100644
--- a/actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
+++ b/actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
@@ -14,7 +14,7 @@ module ActionDispatch
def method_missing(method, *args, &block)
if METHODS.include?(method)
- raise NoMethodError
+ raise NoMethodError, "System tests cannot make direct requests via ##{method}; use #visit and #click_on instead. See http://www.rubydoc.info/github/teamcapybara/capybara/master#The_DSL for more information."
else
super
end