From e217a50092f92057dbb75fba688da5673aec197b Mon Sep 17 00:00:00 2001
From: Dan Drinkard <dan.drinkard@gmail.com>
Date: Thu, 13 Mar 2014 17:06:24 -0400
Subject: [PATCH] test that :smarty_streets interprets zipcode results

---
 test/unit/lookups/smarty_streets_test.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/unit/lookups/smarty_streets_test.rb b/test/unit/lookups/smarty_streets_test.rb
index f797f21f..d561502e 100644
--- a/test/unit/lookups/smarty_streets_test.rb
+++ b/test/unit/lookups/smarty_streets_test.rb
@@ -37,6 +37,7 @@ class SmartyStreetsTest < GeocoderTestCase
     assert_equal "1703", result.zip4
     assert_equal "New York", result.city
     assert_equal "36061", result.fips
+    assert !result.zipcode_result?
   end
 
   def test_smarty_streets_result_components_with_zipcode_only_query
@@ -44,6 +45,7 @@ class SmartyStreetsTest < GeocoderTestCase
     assert_equal "Brooklyn", result.city
     assert_equal "New York", result.state
     assert_equal "NY", result.state_code
+    assert result.zipcode_result?
   end
 
   def test_no_results
-- 
GitLab