Sha256: 01f61e9f0ab6ec7d177a5b81411b164f3f4bed88d89e4ea4f598d5e31f49a641

Contents?: true

Size: 506 Bytes

Versions: 5

Compression:

Stored size: 506 Bytes

Contents

# frozen_string_literal: true

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

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_name_cn.rb
ffaker-2.22.0 test/test_name_cn.rb
ffaker-2.21.0 test/test_name_cn.rb
ffaker-2.20.0 test/test_name_cn.rb
ffaker-2.19.0 test/test_name_cn.rb