Sha256: e14f3d56c7a502cc3a68fbcca309f15ba8977786796ac44f5c114b87f052f925
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
# encoding: utf-8 require 'helper' # Author Guapolo <github.com/guapolo> class TestSSNMX < Test::Unit::TestCase def test_ssn assert_match(/\d{10}-\d/, FFaker::SSNMX.ssn) end def test_ssn_undashed assert_match(/\d{11}/, FFaker::SSNMX.ssn_undashed) end def test_imss assert_match(/\d{10}-\d/, FFaker::SSNMX.imss) end def test_imss_undashed assert_match(/\d{11}/, FFaker::SSNMX.imss_undashed) end def test_issste assert_match(/\d{10}-\d/, FFaker::SSNMX.issste) end def test_issste_undashed assert_match(/\d{11}/, FFaker::SSNMX.issste_undashed) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.2.0 | test/test_ssn_mx.rb |
ffaker-2.1.0 | test/test_ssn_mx.rb |
ffaker-2.0.0 | test/test_ssn_mx.rb |