Skip to content
This repository
Browse code

Fix timezone issue in test

  • Loading branch information...
commit 05cccb1d0f524c67a5f190d795b401316e9a0662 1 parent b25b394
Cody Fauser authored

Showing 2 changed files with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 0  CHANGELOG
  2. +2 2 test/unit/credit_card_test.rb
1  CHANGELOG
... ... @@ -1,5 +1,6 @@
1 1 = ActiveMerchant CHANGELOG
2 2
  3 +* Fix timezone issue in credit card test. [cody]
3 4 * Fix failing unit test for Garanti gateway [cody]
4 5 * Fix failing CyberSource remote test [Patrick Joyce]
5 6 * Support for Garanti Sanal Pos: Turkish bank and billing gateway [Selem Delul]
4 test/unit/credit_card_test.rb
@@ -106,8 +106,8 @@ def test_should_be_a_valid_card_number
106 106 end
107 107
108 108 def test_should_require_a_valid_card_month
109   - @visa.month = Time.now.month
110   - @visa.year = Time.now.year
  109 + @visa.month = Time.now.utc.month
  110 + @visa.year = Time.now.utc.year
111 111
112 112 assert_valid @visa
113 113 end

0 comments on commit 05cccb1

Please sign in to comment.
Something went wrong with that request. Please try again.