Sha256: 75a402efd245978cdaef0bd7e6d00657543c7700dd6dc0b0761e74c94c76d890

Contents?: true

Size: 497 Bytes

Versions: 7

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

require 'helper'

class TestFakerNameCN < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(
    FFaker::NameCN,
    :name, :first_name, :last_name
  )

  def setup
    @tester = FFaker::NameCN
  end

  def test_name
    assert_match(/\A.{2,}\z/, @tester.name)
  end

  def test_first_name
    assert_match(/\A.{1,2}\z/, @tester.first_name)
  end

  def test_last_name
    assert_match(/\A.{1,5}\z/, @tester.last_name)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_name_cn.rb
ffaker-2.17.0 test/test_name_cn.rb
ffaker-2.16.0 test/test_name_cn.rb
ffaker-2.15.0 test/test_name_cn.rb
ffaker-2.14.0 test/test_name_cn.rb
ffaker-2.13.0 test/test_name_cn.rb
ffaker-2.12.0 test/test_name_cn.rb