Sha256: 239d3e338d4898330ed73117a87ab23f3b3db04fbeda47829d2cc1a13b105354
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestAddressUK < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::AddressUK, :country, :county, :postcode ) def test_county assert_match(/[ a-z]/, FFakerTW::AddressUK.county) end def test_country assert_match(/[ a-z]/, FFakerTW::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}$/, FFakerTW::AddressUK.postcode) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_address_uk.rb |