Sha256: 3f904ddc6ef888abbe9185d973ed937ba5f7f7e0e80551d85e785601287cad44

Contents?: true

Size: 474 Bytes

Versions: 14

Compression:

Stored size: 474 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestCompany < Test::Unit::TestCase
  def test_bs
    assert_match /[ a-z]+/, Faker::Company.bs
    assert_match /\s/, Faker::Company.bs
  end

  def test_catch_phrase
    assert_match /[ a-z]+/, Faker::Company.catch_phrase
    assert_match /\s/, Faker::Company.catch_phrase
  end

  def test_name
    assert_match /[ a-z]+/, Faker::Company.name
  end

  def test_suffix
    assert_match /[ a-z]+/i, Faker::Company.suffix
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_company.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_company.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_company.rb
ffaker-1.32.1 test/test_company.rb
ffaker-1.32.0 test/test_company.rb
ffaker-1.31.0 test/test_company.rb
ffaker-1.30.0 test/test_company.rb
ffaker-1.25.0 test/test_company.rb
ffaker-1.24.0 test/test_company.rb
ffakerer-1.0.2 test/test_company.rb
ffaker-1.23.0 test/test_company.rb
ffakerer-1.0.1 test/test_company.rb
ffaker-1.22.1 test/test_company.rb
ffaker-1.22.0 test/test_company.rb