Sha256: 14871653c92b51d8ad4ab43c753756da9acb1a2a14b7237ab678735bb45b72b5
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerNamePH < Test::Unit::TestCase include DeterministicHelper PH_REGEXP = /\A([\wñÑú-]+\.? ?){2,5}\z/.freeze assert_methods_are_deterministic( FFakerTW::NamePH, :name, :last_name, :first_name, :prefix ) def setup @tester = FFakerTW::NamePH end def test_name assert_match(PH_REGEXP, @tester.name) end def test_last_name assert_match(PH_REGEXP, @tester.last_name) end def test_first_name assert_match(PH_REGEXP, @tester.first_name) end def test_prefix assert_match(/\A[A-Z][a-z]+\.?\z/, @tester.prefix) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_name_ph.rb |