test/helper.rb in peddler-0.14.0 vs test/helper.rb in peddler-0.15.0
- old
+ new
@@ -56,10 +56,11 @@
c.hook_into :excon
c.cassette_library_dir = 'test/vcr_cassettes'
# HTTP errors are not Peddler's concern, so ignore them to ease development.
c.before_record do |interaction|
- interaction.ignore! if interaction.response.status.code >= 400
+ code = interaction.response.status.code
+ interaction.ignore! if code >= 400 && code != 414
end
# Ignore transient params when building VCR fixtures.
matcher = VCR.request_matchers.uri_without_param(
'AWSAccessKeyId', 'SellerId', 'Signature', 'Timestamp', 'StartDate',