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

Commit

Permalink
added unit test for capturemethod
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGeukers committed Dec 17, 2013
1 parent 487f95f commit 8d71d10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/gateways/data_cash_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ def test_successful_continuous_authority_purchase
assert response.test?
assert_equal 'ACCEPTED', response.message
end

def test_capturemethod_is_set_to_ecomm
xml = REXML::Document.new(@gateway.send(:build_void_or_capture_request, 'fulfill', 100, 'authorization', {}))
assert_equal 'ecomm', REXML::XPath.first(xml, '//TxnDetails/capturemethod').text
end

private
def failed_purchase_response
Expand Down

0 comments on commit 8d71d10

Please sign in to comment.