Sha256: be1f8070a1862a8b9fc53c360d55854a57455433184dc15ba2caa82026317da1
Contents?: true
Size: 741 Bytes
Versions: 5
Compression:
Stored size: 741 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerNameKH < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::NameKH, :last_name, :first_name, :nick_name, :name ) def setup @name_kh = FFaker::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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.23.0 | test/test_name_kh.rb |
ffaker-2.22.0 | test/test_name_kh.rb |
ffaker-2.21.0 | test/test_name_kh.rb |
ffaker-2.20.0 | test/test_name_kh.rb |
ffaker-2.19.0 | test/test_name_kh.rb |