Sha256: b83c890f6f9616621aedea68d09b47c7a8ec89e4248dfd87c285a2086b156c80

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

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

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffakerTW-0.1.0 test/test_company_it.rb