Sha256: 8473ec78efc90a4e16d4e49b96de392e140ed91345f3d49cc9c867c13408bd58

Contents?: true

Size: 594 Bytes

Versions: 9

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(
    FFakerTW::Company,
    :bs, :catch_phrase, :name, :suffix
  )

  def setup
    @tester = FFakerTW::Company
  end

  def test_bs
    assert_match(%r{\A[ \w'/-]+\z}, @tester.bs)
  end

  def test_catch_phrase
    assert_match(%r{\A[ \w'/-]+\z}, @tester.catch_phrase)
  end

  def test_name
    assert_match(/\A[ \w,'-]+\z/, @tester.name)
  end

  def test_suffix
    assert_include @tester::SUFFIXES, @tester.suffix
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 test/test_company.rb
ffakerTW-1.7.0 test/test_company.rb
ffakerTW-1.6.0 test/test_company.rb
ffakerTW-1.5.0 test/test_company.rb
ffakerTW-1.4.0 test/test_company.rb
ffakerTW-1.3.0 test/test_company.rb
ffakerTW-1.2.0 test/test_company.rb
ffakerTW-1.1.0 test/test_company.rb
ffakerTW-0.1.0 test/test_company.rb