Sha256: 8506a7d2d2bc9e541969a40210a4c6106e89c14cecb6a5d9d13f99945e27775a

Contents?: true

Size: 358 Bytes

Versions: 14

Compression:

Stored size: 358 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestAddressUK < Test::Unit::TestCase
  def test_county
    assert_match /[ a-z]/, Faker::AddressUK.county
  end

  def test_country
    assert_match /[ a-z]/, Faker::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}$/, Faker::AddressUK.postcode
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_address_uk.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_address_uk.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_address_uk.rb
ffaker-1.32.1 test/test_address_uk.rb
ffaker-1.32.0 test/test_address_uk.rb
ffaker-1.31.0 test/test_address_uk.rb
ffaker-1.30.0 test/test_address_uk.rb
ffaker-1.25.0 test/test_address_uk.rb
ffaker-1.24.0 test/test_address_uk.rb
ffakerer-1.0.2 test/test_address_uk.rb
ffaker-1.23.0 test/test_address_uk.rb
ffakerer-1.0.1 test/test_address_uk.rb
ffaker-1.22.1 test/test_address_uk.rb
ffaker-1.22.0 test/test_address_uk.rb