lib/peddler/vcr_matcher.rb in peddler-1.2.0 vs lib/peddler/vcr_matcher.rb in peddler-1.3.0

- old
+ new

@@ -1,21 +1,23 @@ module Peddler + # A custom matcher that can be used to record MWS interactions when + # integration-testing class VCRMatcher TRANSIENT_PARAMS = %w( Signature Timestamp StartDate CreatedAfter QueryStartDateTime - ) + ).freeze SELLER_PARAMS = %w( AWSAccessKeyId SellerId - ) + ).freeze class << self def call(*requests) new(*requests).compare end def ignored_params - @ignored_params ||= TRANSIENT_PARAMS + @ignored_params ||= TRANSIENT_PARAMS.dup end def ignore_seller! ignored_params.concat(SELLER_PARAMS) end