Sha256: dff295ceb7417cab302eb0358b9ada1993ebdd794cd5884fadd87b38e49829b0
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
unless Rack::Test::Session.method_defined?(:patch) module Rack module Test module Methods module Patch extend Forwardable def_delegators :current_session, *[:patch] end end end end module Rack module Test class Session def patch(uri, params = {}, env = {}, &block) env = env_for(uri, env.merge(:method => "PATCH", :params => params)) process_request(uri, env, &block) end end end end else raise LoadError, "Remove spec/support/rack_patch.rb | rack-test #{Rack::Test::VERSION} has a method patch" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grape-0.2.1 | spec/support/rack_patch.rb |
grape-0.2.0 | spec/support/rack_patch.rb |