Sha256: 0351d4962a37b45a5652d27be9e8f078b0b3120d863ae1d9788a88a8d5e8bb7e
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 Bytes
Contents
# encoding: utf-8 require 'helper' class TestCompany < Test::Unit::TestCase def setup @tester = FFaker::Company end def test_bs assert_match(/\A[ \w'\/-]+\z/, @tester.bs) end def test_catch_phrase assert_match(/\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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.2.0 | test/test_company.rb |
ffaker-2.1.0 | test/test_company.rb |