Sha256: e57f640ab8c7c537a5f65be0afb345b46d4dbeb37dcdaa2676c38c880bf0f087
Contents?: true
Size: 1.48 KB
Versions: 4
Compression:
Stored size: 1.48 KB
Contents
# encoding: utf-8 require 'helper' class TestAddress < Test::Unit::TestCase def test_building_number assert_match /\A\d{3,5}\z/, Faker::Address.building_number end def test_city assert_match /[ a-z]+/, Faker::Address.city end def test_city_prefix assert_match /[ a-z]/, Faker::Address.city_prefix end def test_city_suffix assert_match /[ a-z]/, Faker::Address.city_suffix end def test_secondary_address assert_match /[ a-z]/, Faker::Address.secondary_address end def test_street_address assert_match /[ a-z]/, Faker::Address.street_address end def test_street_name assert_match /[ a-z]/, Faker::Address.street_name end def test_street_suffix assert_match /[ a-z]/, Faker::Address.street_suffix end def test_uk_country assert_match /[ a-z]/, Faker::AddressUK.country end def test_uk_county assert_match /[ a-z]/, Faker::AddressUK.county end def test_uk_postcode assert_match /[ a-z]/, Faker::AddressUK.postcode end def test_us_state assert_match /[ a-z]/, Faker::AddressUS.state end def test_us_state_abbr assert_match /[A-Z]/, Faker::AddressUS.state_abbr end def test_zip_code assert_match /[0-9]/, Faker::AddressUS.zip_code end def test_zip_code_frozen assert Faker::AddressUS.zip_code.frozen? == false end def test_neighborhood assert_match /[ a-z]+/, Faker::Address::neighborhood end def test_country assert_match /[ a-z]+/, Faker::Address::country end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
ffakerer-1.0.2 | test/test_address.rb |
ffakerer-1.0.1 | test/test_address.rb |
ffaker-1.22.1 | test/test_address.rb |
ffaker-1.22.0 | test/test_address.rb |