Sha256: a2b68fd6955828d631a4bd144130c3a3a8f2be71d4dfb45568495dfcc7fd817b
Contents?: true
Size: 590 Bytes
Versions: 5
Compression:
Stored size: 590 Bytes
Contents
# frozen_string_literal: true require_relative '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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.23.0 | test/test_company.rb |
ffaker-2.22.0 | test/test_company.rb |
ffaker-2.21.0 | test/test_company.rb |
ffaker-2.20.0 | test/test_company.rb |
ffaker-2.19.0 | test/test_company.rb |