Sha256: 1a2573dd14cdb33627b57f0824d16ff881bdb12cc60072d11679af29658370d5
Contents?: true
Size: 744 Bytes
Versions: 7
Compression:
Stored size: 744 Bytes
Contents
# encoding: utf-8 require 'helper' class TestAddressUSUS < Test::Unit::TestCase 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_us_state_and_territories_abbr assert_match /[A-Z]/, Faker::AddressUS.state_and_territories_abbr end def test_us_continental_state assert_match /[ a-z]/, Faker::AddressUS.continental_state end def test_us_continental_state_abbr assert_match /[A-Z]/, Faker::AddressUS.continental_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 end
Version data entries
7 entries across 7 versions & 2 rubygems