Permalink
Browse files

Fix build: Rack::Test has been updated, now supports HTTP PATCH.

  • Loading branch information...
1 parent be893af commit c4b269287a5a0437fde6811db6619ba402547e9f @dblock dblock committed Sep 28, 2012
Showing with 1 addition and 28 deletions.
  1. +1 −2 Gemfile
  2. +0 −1 spec/spec_helper.rb
  3. +0 −25 spec/support/rack_patch.rb
View
3 Gemfile
@@ -10,7 +10,6 @@ group :development, :test do
gem 'rb-fsevent'
gem 'growl'
gem 'json'
-
gem 'rspec'
- gem 'rack-test', :require => "rack/test"
+ gem 'rack-test', "~> 0.6.2", :require => "rack/test"
end
View
1 spec/spec_helper.rb
@@ -23,6 +23,5 @@
RSpec.configure do |config|
config.include Rack::Test::Methods
- config.include Rack::Test::Methods::Patch
end
View
25 spec/support/rack_patch.rb
@@ -1,25 +0,0 @@
-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

0 comments on commit c4b2692

Please sign in to comment.