Module: USPS::Test::CityAndStateLookup
- Included in:
- USPS::Test
- Defined in:
- lib/usps/test/city_and_state_lookup.rb
Instance Method Summary collapse
Instance Method Details
#test_city_and_state_lookup_1 ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/usps/test/city_and_state_lookup.rb', line 3 def test_city_and_state_lookup_1 data = USPS.get_city_and_state_for_zip(90210) assert_equal 90210, data[:zip] assert_equal 'BEVERLY HILLS', data[:city] assert_equal 'CA', data[:state] end |
#test_city_and_state_lookup_2 ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/usps/test/city_and_state_lookup.rb', line 11 def test_city_and_state_lookup_2 data = USPS.get_city_and_state_for_zip(20770) assert_equal 20770, data.zip assert_equal 'GREENBELT', data.city assert_equal 'MD', data.state end |