test/unit/peddler/test_client.rb in peddler-0.7.11 vs test/unit/peddler/test_client.rb in peddler-0.8.0
- old
+ new
@@ -17,10 +17,11 @@
@client.aws_access_key_id = 'key'
@client.aws_secret_access_key = 'secret'
@client.merchant_id = 'seller'
@client.marketplace_id = 'ATVPDKIKX0DER' # US
+ @client.parser = Parser
@client.operation('Foo')
end
def teardown
@@ -102,17 +103,17 @@
assert_equal 'text/xml', content_type
end
def test_runs_a_request
- res = @client.run(Parser)
+ res = @client.run
assert_equal @body, res.body
end
def test_streams_response
chunks = ''
streamer = ->(chunk, _, _) { chunks << chunk }
- @client.run(Parser, &streamer)
+ @client.run(&streamer)
assert_equal @body, chunks
end
end