Skip to content

Instantly share code, notes, and snippets.

@burningTyger
Created March 21, 2012 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burningTyger/2147200 to your computer and use it in GitHub Desktop.
Save burningTyger/2147200 to your computer and use it in GitHub Desktop.
Using PATCH in Rack::Test

In case you want to use the PATCH verbin Rack::Test and you get errors when you try it with the current gem release you will have to use the git version in your Gemfile:

group :test do
  gem 'rack-test', :git => "https://github.com/brynary/rack-test.git"

While the PATCH verb has been included in a recent patch it's not yet in the gem release. Using the :git repo lets you test also PATCH routes for your rack app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment