Sha256: 63c76678825ae5e290b36fd7487cade0a6a8f01430ad86a800f2d61e0e613278

Contents?: true

Size: 509 Bytes

Versions: 10

Compression:

Stored size: 509 Bytes

Contents

# encoding: utf-8

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

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_address_uk.rb
ffaker-2.10.0 test/test_address_uk.rb
ffaker-2.9.0 test/test_address_uk.rb
ffaker-2.8.1 test/test_address_uk.rb
ffaker-2.8.0 test/test_address_uk.rb
ffaker-2.7.0 test/test_address_uk.rb
ffaker-2.6.0 test/test_address_uk.rb
ffaker-2.5.0 test/test_address_uk.rb
ffaker-2.4.0 test/test_address_uk.rb
ffaker-2.3.0 test/test_address_uk.rb