Sha256: 987ca25091936d8d5c4c891e25bea0f7790bcbf6186e4ce1c69025ee08be9a1b
Contents?: true
Size: 751 Bytes
Versions: 10
Compression:
Stored size: 751 Bytes
Contents
# encoding: utf-8 require 'helper' class TestFakerNameNB < Test::Unit::TestCase def setup @tester = Faker::NameNB end def test_last_name assert Faker::NameNB::LAST_NAMES.include?(@tester.last_name) end def test_first_name_male assert Faker::NameNB::FIRST_NAMES_MALE.include?(@tester.first_name_male) end def test_first_name_female assert Faker::NameNB::FIRST_NAMES_FEMALE.include?(@tester.first_name_female) end def test_prefix assert Faker::NameNB::PREFIXES.include?(@tester.prefix) end def test_first_name parts = @tester.first_name.split(' ') assert [1,2].include? parts.count end def test_name parts = @tester.name.split(' ') assert [2, 3, 4].include? parts.count end end
Version data entries
10 entries across 10 versions & 2 rubygems