Sha256: 1cf6045a680554789f103d777e0fd198eb1f84e195eb21530294314035d86990

Contents?: true

Size: 523 Bytes

Versions: 5

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

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

  def setup
    @tester = FFaker::NameTW
  end

  def test_last_name
    assert_include @tester::LAST_NAMES, @tester.last_name
  end

  def test_first_name
    assert_include @tester::FIRST_NAMES, @tester.first_name
  end

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

Version data entries

5 entries across 5 versions & 1 rubygems

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