Sha256: b84acea522d941812b28704939c0520c84551c1bbbc503ebb850866db6edaed4

Contents?: true

Size: 581 Bytes

Versions: 7

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

require 'helper'

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

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

  def setup
    @tester = FFaker::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

7 entries across 7 versions & 1 rubygems

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