module ActionDispatch::SystemTesting::TestHelpers::UndefMethods

def method_missing(method, *args, &block)

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