Sha256: 80323a46ef46def5aa0d92bbe014ef7487ce863ee32f7309381f8706fe2a9fb1
Contents?: true
Size: 745 Bytes
Versions: 1
Compression:
Stored size: 745 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerNameKH < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::NameKH, :last_name, :first_name, :nick_name, :name ) def setup @name_kh = FFakerTW::NameKH end def test_last_name assert_include @name_kh::LAST_NAMES, @name_kh.last_name end def test_first_name assert_include @name_kh::FIRST_NAMES, @name_kh.first_name end def test_nick_name assert_include @name_kh::NICK_NAMES, @name_kh.nick_name end def test_name last_name, first_name = @name_kh.name.split(' ') assert_include @name_kh::FIRST_NAMES, first_name assert_include @name_kh::LAST_NAMES, last_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_name_kh.rb |