Sha256: 98858699c5261b98c9c0f3149e17784707b86ea25385260ca9d8d7d304280757
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 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( FFaker::NamePH, :name, :last_name, :first_name, :prefix ) def setup @tester = FFaker::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.21.0 | test/test_name_ph.rb |
ffaker-2.20.0 | test/test_name_ph.rb |
ffaker-2.19.0 | test/test_name_ph.rb |