Sha256: 3fbbf23dc42b804939f135ad4c6bd6b7c82d1ed80100fcf00287471579446ad4

Contents?: true

Size: 701 Bytes

Versions: 10

Compression:

Stored size: 701 Bytes

Contents

require '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

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_name_kh.rb
ffaker-2.10.0 test/test_name_kh.rb
ffaker-2.9.0 test/test_name_kh.rb
ffaker-2.8.1 test/test_name_kh.rb
ffaker-2.8.0 test/test_name_kh.rb
ffaker-2.7.0 test/test_name_kh.rb
ffaker-2.6.0 test/test_name_kh.rb
ffaker-2.5.0 test/test_name_kh.rb
ffaker-2.4.0 test/test_name_kh.rb
ffaker-2.3.0 test/test_name_kh.rb