From 7db748cc9248b4a9ab1a2fb4049c02b75cd01acd Mon Sep 17 00:00:00 2001 From: Nathaniel Talbott Date: Wed, 11 Dec 2013 14:54:00 -0500 Subject: [PATCH] Fix accidentally overwritten test methods --- test/unit/gateways/payscout_test.rb | 2 +- .../notifications/bit_pay_notification_test.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit/gateways/payscout_test.rb b/test/unit/gateways/payscout_test.rb index 95dd04ef4be..0781da14568 100644 --- a/test/unit/gateways/payscout_test.rb +++ b/test/unit/gateways/payscout_test.rb @@ -508,7 +508,7 @@ def approved_void_authorization_response ).join('&') end - def test_invalid_transaction_id_void + def invalid_transaction_id_void_response %w( response=3 responsetext=Invalid+Transaction+ID+/+Object+ID+specified:++REFID:4054572 diff --git a/test/unit/integrations/notifications/bit_pay_notification_test.rb b/test/unit/integrations/notifications/bit_pay_notification_test.rb index b7b94f964fa..5f55c145570 100644 --- a/test/unit/integrations/notifications/bit_pay_notification_test.rb +++ b/test/unit/integrations/notifications/bit_pay_notification_test.rb @@ -40,14 +40,14 @@ def test_successful_acknowledgement assert @bit_pay.acknowledge end - def test_failed_acknowledgement + def test_acknowledgement_error Net::HTTP.any_instance.expects(:request).returns(stub(:body => '{"error":"Doesnt match"}')) - assert_nil @bit_pay.acknowledge + assert !@bit_pay.acknowledge end - def test_failed_acknowledgement + def test_acknowledgement_invalid_json Net::HTTP.any_instance.expects(:request).returns(stub(:body => '{invalid json')) - assert_nil @bit_pay.acknowledge + assert !@bit_pay.acknowledge end private