Skip to content

Commit

Permalink
Simple(minded) fix for timezone issue in PayPal API test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalbott committed Apr 2, 2012
1 parent 1a54544 commit d845ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/gateways/paypal/paypal_common_api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def test_build_transaction_search_request
:receiver => 'foo@example.com',
:first_name => 'Robert'}
request = REXML::Document.new(@gateway.send(:build_transaction_search, options))
assert_equal '2012-02-21T05:00:00Z', REXML::XPath.first(request, '//TransactionSearchReq/TransactionSearchRequest/StartDate').text
assert_equal '2012-03-21T04:00:00Z', REXML::XPath.first(request, '//TransactionSearchReq/TransactionSearchRequest/EndDate').text
assert_match %r{^2012-02-21T\d{2}:00:00Z$}, REXML::XPath.first(request, '//TransactionSearchReq/TransactionSearchRequest/StartDate').text
assert_match %r{^2012-03-21T\d{2}:00:00Z$}, REXML::XPath.first(request, '//TransactionSearchReq/TransactionSearchRequest/EndDate').text
assert_equal 'foo@example.com', REXML::XPath.first(request, '//TransactionSearchReq/TransactionSearchRequest/Receiver').text
end

Expand Down

0 comments on commit d845ffd

Please sign in to comment.