./test/general/validator_test.rb in exact4r-1.0 vs ./test/general/validator_test.rb in exact4r-1.1
- old
+ new
@@ -120,10 +120,10 @@
# validation: card number
assert EWS::Transaction::Request.new(basic_params(:cc_number => "4111111111111111")).valid?
assert !EWS::Transaction::Request.new(basic_params(:cc_number => "4111111111111112")).valid?
# validation: card expiry (should be in MMYY format)
- assert EWS::Transaction::Request.new(basic_params(:cc_expiry => "1009")).valid?
+ assert EWS::Transaction::Request.new(basic_params(:cc_expiry => "0913")).valid?
assert !EWS::Transaction::Request.new(basic_params(:cc_expiry => nil)).valid?
assert !EWS::Transaction::Request.new(basic_params(:cc_expiry => "")).valid?
assert !EWS::Transaction::Request.new(basic_params(:cc_expiry => "708")).valid?
assert !EWS::Transaction::Request.new(basic_params(:cc_expiry => "07089")).valid?
assert !EWS::Transaction::Request.new(basic_params(:cc_expiry => "07f")).valid?
\ No newline at end of file