Sha256: b43e2e64bbc126c85640d8e2355f7f7ed14f0213972c5a9e76c032d73d0e5945
Contents?: true
Size: 750 Bytes
Versions: 104
Compression:
Stored size: 750 Bytes
Contents
# frozen_string_literal: true module ActionDispatch module SystemTesting module TestHelpers module UndefMethods # :nodoc: extend ActiveSupport::Concern included do METHODS = %i(get post put patch delete).freeze METHODS.each do |verb| undef_method verb end 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 end end end end end
Version data entries
104 entries across 98 versions & 6 rubygems