Sha256: 10a51c6b9dbf3e136901a25756b8d05635448fd93ae04aea86705a78306ca4ae
Contents?: true
Size: 583 Bytes
Versions: 34
Compression:
Stored size: 583 Bytes
Contents
require 'test_helper' class CreditCardFormattingTest < Test::Unit::TestCase include ActiveMerchant::Billing::CreditCardFormatting def test_should_format_number_by_rule assert_equal 2005, format(2005, :steven_colbert) assert_equal '0005', format(05, :four_digits) assert_equal '2005', format(2005, :four_digits) assert_equal '05', format(2005, :two_digits) assert_equal '05', format(05, :two_digits) assert_equal '08', format(8, :two_digits) assert format(nil, :two_digits).blank? assert format('', :two_digits).blank? end end
Version data entries
34 entries across 34 versions & 11 rubygems