test/unit/mws/test_subscriptions_client.rb in peddler-2.0.4 vs test/unit/mws/test_subscriptions_client.rb in peddler-2.1.0

- old
+ new

@@ -6,11 +6,11 @@ class TestMWSSubscriptionsClient < MiniTest::Test def setup @client = MWS::Subscriptions::Client.new end - def test_registers_destination + def test_registering_destination operation = { 'Action' => 'RegisterDestination', 'MarketplaceId' => '321', 'Destination.DeliveryChannel' => 'SQS', 'Destination.AttributeList.member.1.Key' => 'sqsQueueUrl', @@ -22,11 +22,11 @@ end assert_equal operation, @client.operation end - def test_deregisters_destination + def test_deregistering_destination operation = { 'Action' => 'DeregisterDestination', 'MarketplaceId' => '123', 'Destination.DeliveryChannel' => 'SQS', 'Destination.AttributeList.member.1.Key' => 'sqsQueueUrl', @@ -38,11 +38,11 @@ end assert_equal operation, @client.operation end - def test_deregisters_destination_with_alternate_marketplace + def test_deregistering_destination_with_alternate_marketplace operation = { 'Action' => 'DeregisterDestination', 'MarketplaceId' => '321', 'Destination.DeliveryChannel' => 'SQS', 'Destination.AttributeList.member.1.Key' => 'sqsQueueUrl', @@ -54,11 +54,11 @@ end assert_equal operation, @client.operation end - def test_lists_registered_destinations + def test_listing_registered_destinations operation = { 'Action' => 'ListRegisteredDestinations', 'MarketplaceId' => '321' } @@ -67,11 +67,11 @@ end assert_equal operation, @client.operation end - def test_sends_test_notification_to_destination + def test_sending_test_notification_to_destination operation = { 'Action' => 'SendTestNotificationToDestination', 'MarketplaceId' => '321', 'Destination.DeliveryChannel' => 'SQS', 'Destination.AttributeList.member.1.Key' => 'sqsQueueUrl', @@ -83,11 +83,11 @@ end assert_equal operation, @client.operation end - def test_creates_subscription + def test_creating_subscription operation = { 'Action' => 'CreateSubscription', 'MarketplaceId' => '321', 'Subscription.IsEnabled' => true, 'Subscription.NotificationType' => 'foo', @@ -101,11 +101,11 @@ end assert_equal operation, @client.operation end - def test_gets_subscription + def test_getting_subscription operation = { 'Action' => 'GetSubscription', 'MarketplaceId' => '321', 'NotificationType' => 'foo', 'Destination.DeliveryChannel' => 'SQS', @@ -118,11 +118,11 @@ end assert_equal operation, @client.operation end - def test_deletes_subscription + def test_deleting_subscription operation = { 'Action' => 'DeleteSubscription', 'MarketplaceId' => '321', 'NotificationType' => 'foo', 'Destination.DeliveryChannel' => 'SQS', @@ -135,11 +135,11 @@ end assert_equal operation, @client.operation end - def test_lists_subscriptions + def test_listing_subscriptions operation = { 'Action' => 'ListSubscriptions', 'MarketplaceId' => '321' } @@ -148,11 +148,11 @@ end assert_equal operation, @client.operation end - def test_updates_subscription + def test_updating_subscription operation = { 'Action' => 'UpdateSubscription', 'MarketplaceId' => '321', 'Subscription.IsEnabled' => true, 'Subscription.NotificationType' => 'foo', @@ -166,10 +166,10 @@ end assert_equal operation, @client.operation end - def test_gets_service_status + def test_getting_service_status operation = { 'Action' => 'GetServiceStatus' } @client.stub(:run, nil) do