Skip to content
Snippets Groups Projects
Commit e217a500 authored by Dan Drinkard's avatar Dan Drinkard
Browse files

test that :smarty_streets interprets zipcode results

parent 6f79b6fb
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,7 @@ class SmartyStreetsTest < GeocoderTestCase ...@@ -37,6 +37,7 @@ class SmartyStreetsTest < GeocoderTestCase
assert_equal "1703", result.zip4 assert_equal "1703", result.zip4
assert_equal "New York", result.city assert_equal "New York", result.city
assert_equal "36061", result.fips assert_equal "36061", result.fips
assert !result.zipcode_result?
end end
def test_smarty_streets_result_components_with_zipcode_only_query def test_smarty_streets_result_components_with_zipcode_only_query
...@@ -44,6 +45,7 @@ class SmartyStreetsTest < GeocoderTestCase ...@@ -44,6 +45,7 @@ class SmartyStreetsTest < GeocoderTestCase
assert_equal "Brooklyn", result.city assert_equal "Brooklyn", result.city
assert_equal "New York", result.state assert_equal "New York", result.state
assert_equal "NY", result.state_code assert_equal "NY", result.state_code
assert result.zipcode_result?
end end
def test_no_results def test_no_results
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment