test/fixtures.rb in pagarme-2.1.2 vs test/fixtures.rb in pagarme-2.1.3

- old
+ new

@@ -109,11 +109,11 @@ def recipient { transfer_day: 3, transfer_enabled: true, - transfer_interval: 'daily' + transfer_interval: 'weekly' } end def postback { postback_url: 'http://test.com/postback' } @@ -200,10 +200,10 @@ def fixtures @fixtures ||= Fixtures.new end def method_missing(name, *args, &block) - match = name.to_s.match /\_params\Z/ + match = name.to_s.match(/\_params\Z/) if match && fixtures.respond_to?(match.pre_match) && args.count < 2 if args.empty? fixtures.public_send match.pre_match else fixtures.public_send(match.pre_match).merge args.first