Sha256: a1a58bafb8c036a3000aa7368d71651f18d7bd7085b1b0b82a36f1abd9e2ed11

Contents?: true

Size: 521 Bytes

Versions: 7

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

require 'helper'

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

  assert_methods_are_deterministic(
    FFaker::AddressUK,
    :country, :county, :postcode
  )

  def test_county
    assert_match(/[ a-z]/, FFaker::AddressUK.county)
  end

  def test_country
    assert_match(/[ a-z]/, FFaker::AddressUK.country)
  end

  def test_postcode
    assert_match(/^[A-Z]{2}\d \d[A-Z]{2}|[A-Z]{2}\d\d \d[A-Z]{2}$/,
                 FFaker::AddressUK.postcode)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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