Sha256: 34e8e3c77b85985f4dcf1c4ff960953fb31e5ae13ee9752c032fd3fc6a4f1d9f

Contents?: true

Size: 452 Bytes

Versions: 7

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

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