Sha256: 0235b028e77d68a94ea423fc6c2bbc8d0aa00c1b1eb0fa0cc1e39b8fd37d9a86
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestAddressGR < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::AddressGR, :city, :region, :zip_code, :street_name, :street_nbr, :street_address ) def setup @address_gr = FFakerTW::AddressGR @street_prefix = FFakerTW::AddressGR::STREET_PREFIX.join('|') end def test_city assert_match(/\p{Greek}/, @address_gr.city) end def test_region assert_match(/\p{Greek}/, @address_gr.region) end def test_zip_code assert_match(/\A\d{5}\z/, @address_gr.zip_code) end def test_street_name assert_match(/\p{Greek}/, @address_gr.street_name) end def test_street_nbr assert_match(/\A\d{1,3}\z/, @address_gr.street_nbr) end def test_street_address address = FFakerTW::AddressGR.street_address assert_match(/#{@street_prefix}/, address) assert_match(/\p{Greek}/, address) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_address_gr.rb |