Skip to content

Instantly share code, notes, and snippets.

@troszok
Created January 21, 2015 15:03
Show Gist options
  • Save troszok/2dfc025a5a346899d435 to your computer and use it in GitHub Desktop.
Save troszok/2dfc025a5a346899d435 to your computer and use it in GitHub Desktop.
vcr_for_amazon
# based on that: http://myronmars.to/n/dev-blog/2011/10/custom-request-matchers-in-vcr-2-0
uri_without_timestamp = VCR.request_matchers.uri_without_param("Timestamp", "Signature")
context "amazon integration", vcr: {record: :once, :match_requests_on => [:method, uri_without_timestamp]} do
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment