test/unit/credit_card_test.rb in smulube-activemerchant-1.5.1.3 vs test/unit/credit_card_test.rb in smulube-activemerchant-1.5.1.4
- old
+ new
@@ -104,11 +104,11 @@
assert_valid @visa
end
def test_should_require_a_valid_card_month
- @visa.month = Time.now.month
- @visa.year = Time.now.year
+ @visa.month = Time.now.utc.month
+ @visa.year = Time.now.utc.year
assert_valid @visa
end
def test_should_not_be_valid_with_empty_month