aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2017-10-08 11:03:44 -0400
committerGitHub <noreply@github.com>2017-10-08 11:03:44 -0400
commit7c564d87408ca1e205d34574228d6f981c7571c8 (patch)
tree29c6bfae35e80cd6ec866573666daf1067a79072 /actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
parent8ad8bbaef8c4f521f292765a02ddb91e48160366 (diff)
parent54b18a2149537afd516262fd8c4d4ad5e6f4e6d2 (diff)
downloadrails-7c564d87408ca1e205d34574228d6f981c7571c8.tar.gz
rails-7c564d87408ca1e205d34574228d6f981c7571c8.tar.bz2
rails-7c564d87408ca1e205d34574228d6f981c7571c8.zip
Merge pull request #30817 from yalab/friendly_exception_message
Exception message for SystemTestCase#get etc..
Diffstat (limited to 'actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb')
-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