Sha256: 66914ce1c640e6ef3b1d46ac28f78d52f0df4bda903ba23ece1b027a7416bacb
Contents?: true
Size: 612 Bytes
Versions: 10
Compression:
Stored size: 612 Bytes
Contents
# encoding: utf-8 require 'helper' class TestFakerNamePH < Test::Unit::TestCase include DeterministicHelper PH_REGEXP = /\A([\wñÑú-]+\.? ?){2,5}\z/ 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
10 entries across 10 versions & 1 rubygems