Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Fix accidentally overwritten test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalbott committed Dec 11, 2013
1 parent b7045e3 commit 7db748c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/unit/gateways/payscout_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7db748c

Please sign in to comment.