test/unit/mws/test_subscriptions_client.rb in peddler-0.15.0 vs test/unit/mws/test_subscriptions_client.rb in peddler-0.16.0

- old
+ new

@@ -2,11 +2,11 @@ require 'mws/subscriptions/client' class TestMWSSubscriptionsClient < MiniTest::Test def setup @client = MWS::Subscriptions::Client.new - @client.marketplace_id = '123' + @client.primary_marketplace_id = '123' end def test_registers_destination operation = { 'Action' => 'RegisterDestination', @@ -131,11 +131,11 @@ def test_creates_subscription operation = { 'Action' => 'CreateSubscription', 'MarketplaceId' => '123', - 'Subscription.IsEnabled'=>true, + 'Subscription.IsEnabled' => true, 'Subscription.NotificationType' => 'foo', 'Subscription.Destination.DeliveryChannel' => 'SQS', 'Subscription.Destination.AttributeList.member.1.Key' => 'sqsQueueUrl', 'Subscription.Destination.AttributeList.member.1.Value' => 'bar' } @@ -149,10 +149,10 @@ def test_creates_subscription_with_alternate_marketplace operation = { 'Action' => 'CreateSubscription', 'MarketplaceId' => '321', - 'Subscription.IsEnabled'=>true, + 'Subscription.IsEnabled' => true, 'Subscription.NotificationType' => 'foo', 'Subscription.Destination.DeliveryChannel' => 'SQS', 'Subscription.Destination.AttributeList.member.1.Key' => 'sqsQueueUrl', 'Subscription.Destination.AttributeList.member.1.Value' => 'bar' }