Sha256: f052407cd423312c6ee992694224203f37468140ee4b0be11083f28d1b810534

Contents?: true

Size: 564 Bytes

Versions: 5

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(
    FFaker::CompanyIT,
    :name, :suffix, :prefix, :partita_iva
  )

  def test_name
    assert_match(/[ a-z]+/, FFaker::CompanyIT.name)
  end

  def test_suffix
    assert_match(/[ a-z]+/i, FFaker::CompanyIT.suffix)
  end

  def test_prefix
    assert_match(/[ a-z]+/i, FFaker::CompanyIT.prefix)
  end

  def test_partita_iva
    assert_match(/\d{11}/, FFaker::CompanyIT.partita_iva)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_company_it.rb
ffaker-2.22.0 test/test_company_it.rb
ffaker-2.21.0 test/test_company_it.rb
ffaker-2.20.0 test/test_company_it.rb
ffaker-2.19.0 test/test_company_it.rb