test/remote/amazon_test.rb in active_fulfillment-1.0.3 vs test/remote/amazon_test.rb in active_fulfillment-2.0.0

- old
+ new

@@ -31,11 +31,11 @@ } ] end def test_successful_order_submission - response = @service.fulfill(generate_order_id, @address, @line_items, @options) + response = @service.fulfill(ActiveMerchant::Utils.generate_unique_id, @address, @line_items, @options) assert response.success? assert !response.test? end def test_order_multiple_line_items @@ -43,20 +43,20 @@ { :sku => 'CARCASSONNE', :quantity => 2 } ) - response = @service.fulfill(generate_order_id, @address, @line_items, @options) + response = @service.fulfill(ActiveMerchant::Utils.generate_unique_id, @address, @line_items, @options) assert response.success? end def test_invalid_credentials_during_fulfillment service = AmazonService.new( :login => 'y', :password => 'p') - response = service.fulfill(generate_order_id, @address, @line_items, @options) + response = service.fulfill(ActiveMerchant::Utils.generate_unique_id, @address, @line_items, @options) assert !response.success? assert_equal "aws:Client.InvalidClientTokenId The AWS Access Key Id you provided does not exist in our records.", response.message end def test_list_orders @@ -112,6 +112,6 @@ service = AmazonService.new(fixtures(:amazon)) response = service.status assert response.success? end -end \ No newline at end of file +end