Sha256: 1b9432538997f257c7235e3602b5d835a1956f0dea11ec404fd5fb6723e4e49a
Contents?: true
Size: 752 Bytes
Versions: 5
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.23.0 | test/test_ssn_mx.rb |
ffaker-2.22.0 | test/test_ssn_mx.rb |
ffaker-2.21.0 | test/test_ssn_mx.rb |
ffaker-2.20.0 | test/test_ssn_mx.rb |
ffaker-2.19.0 | test/test_ssn_mx.rb |