Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.396 kb
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_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
Jump to Line
Something went wrong with that request. Please try again.