Sha256: 5cbb5996e4eec8b5573863b3e5fb1396f91552952f0d6505282bd882b70d7ca2
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 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 else super end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb |