method

method_missing

rails latest stable - Class: ActionDispatch::SystemTesting::TestHelpers::UndefMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

method_missing(method, *args, &block)
public

No documentation available.

# File actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb, line 15
          def method_missing(method, *args, &block)
            if METHODS.include?(method)
              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
          end