Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.341 kB
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
Jump to Line
Something went wrong with that request. Please try again.