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