Sha256: c182f1b9ab811a886e6ec8dee989b894efdf44494f287f72d0a3657dad0bd617

Contents?: true

Size: 461 Bytes

Versions: 5

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(
    FFaker::CompanyCN,
    :name, :suffix, :type
  )

  def test_name
    assert_match(/.{4,}公司\z/, FFaker::CompanyCN.name)
  end

  def test_suffix
    assert_match(/公司\z/i, FFaker::CompanyCN.suffix)
  end

  def test_type
    assert_match(/.{2,}/i, FFaker::CompanyCN.type)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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