Sha256: cc9665ff467cf2f6e40b4319e6b59c6913d6036509fd6566f6d38d031b392b32
Contents?: true
Size: 769 Bytes
Versions: 10
Compression:
Stored size: 769 Bytes
Contents
# encoding: utf-8 require 'helper' # Author Guapolo <github.com/guapolo> class TestSSNMX < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::SSNMX, :ssn, :ssn_undashed, :imss, :imss_undashed, :issste, :issste_undashed ) 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
10 entries across 10 versions & 1 rubygems