Sha256: f625215c08561218cf5bfca59e9ff6925c351e949bc7ce8993ef4dd0835cf5fc

Contents?: true

Size: 555 Bytes

Versions: 7

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true

require '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

7 entries across 7 versions & 1 rubygems

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