test/test_helper.rb in google_maps-0.3.0 vs test/test_helper.rb in google_maps-0.3.1

- old
+ new

@@ -32,6 +32,10 @@ def new_york_json "{\n \"results\" : [\n {\n \"address_components\" : [\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"New York\",\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"New York\",\n \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"NY\",\n \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n },\n {\n \"long_name\" : \"United States\",\n \"short_name\" : \"US\",\n \"types\" : [ \"country\", \"political\" ]\n }\n ],\n \"formatted_address\" : \"New York, NY, USA\",\n \"geometry\" : {\n \"bounds\" : {\n \"northeast\" : {\n \"lat\" : 40.91524130,\n \"lng\" : -73.7002720\n },\n \"southwest\" : {\n \"lat\" : 40.4959080,\n \"lng\" : -74.25908790\n }\n },\n \"location\" : {\n \"lat\" : 40.71435280,\n \"lng\" : -74.00597309999999\n },\n \"location_type\" : \"APPROXIMATE\",\n \"viewport\" : {\n \"northeast\" : {\n \"lat\" : 40.84953420,\n \"lng\" : -73.74985430\n },\n \"southwest\" : {\n \"lat\" : 40.57889640,\n \"lng\" : -74.26209190\n }\n }\n },\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"address_components\" : [\n {\n \"long_name\" : \"Manhattan\",\n \"short_name\" : \"Manhattan\",\n \"types\" : [ \"sublocality\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"New York\",\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"New York\",\n \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"NY\",\n \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n },\n {\n \"long_name\" : \"United States\",\n \"short_name\" : \"US\",\n \"types\" : [ \"country\", \"political\" ]\n }\n ],\n \"formatted_address\" : \"Manhattan, New York, NY, USA\",\n \"geometry\" : {\n \"bounds\" : {\n \"northeast\" : {\n \"lat\" : 40.8822140,\n \"lng\" : -73.9070\n },\n \"southwest\" : {\n \"lat\" : 40.67954790,\n \"lng\" : -74.0472850\n }\n },\n \"location\" : {\n \"lat\" : 40.78343450,\n \"lng\" : -73.96624950\n },\n \"location_type\" : \"APPROXIMATE\",\n \"viewport\" : {\n \"northeast\" : {\n \"lat\" : 40.8200450,\n \"lng\" : -73.90331300000001\n },\n \"southwest\" : {\n \"lat\" : 40.6980780,\n \"lng\" : -74.03514899999999\n }\n }\n },\n \"types\" : [ \"sublocality\", \"political\" ]\n }\n ],\n \"status\" : \"OK\"\n}\n" end + def all_encompassing_json + "{\n \"results\" : [\n {\n \"address_components\" : [\n {\n \"long_name\" : \"80\",\n \"short_name\" : \"80\",\n \"types\" : [ \"street_number\" ]\n },\n {\n \"long_name\" : \"Leonard Street\",\n \"short_name\" : \"Leonard St\",\n \"types\" : [ \"route\" ]\n },\n {\n \"long_name\" : \"Lower Manhattan\",\n \"short_name\" : \"Lower Manhattan\",\n \"types\" : [ \"neighborhood\", \"political\" ]\n },\n {\n \"long_name\" : \"Manhattan\",\n \"short_name\" : \"Manhattan\",\n \"types\" : [ \"sublocality\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"New York\",\n \"types\" : [ \"locality\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"New York\",\n \"types\" : [ \"administrative_area_level_3\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"New York\",\n \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n },\n {\n \"long_name\" : \"New York\",\n \"short_name\" : \"NY\",\n \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n },\n {\n \"long_name\" : \"United States\",\n \"short_name\" : \"US\",\n \"types\" : [ \"country\", \"political\" ]\n },\n {\n \"long_name\" : \"10013\",\n \"short_name\" : \"10013\",\n \"types\" : [ \"postal_code\" ]\n },\n {\n \"long_name\" : \"Premise Long\",\n \"short_name\" : \"Premise Short\",\n \"types\" : [ \"premise\" ]\n },\n {\n \"long_name\" : \"Subpremise Long\",\n \"short_name\" : \"Subpremise Short\",\n \"types\" : [ \"subpremise\" ]\n },\n {\n \"long_name\" : \"Pretty Mountain Long\",\n \"short_name\" : \"Pretty Mountain Short\",\n \"types\" : [ \"natural_feature\" ]\n },\n {\n \"long_name\" : \"La Guardia\",\n \"short_name\" : \"La Guardia\",\n \"types\" : [ \"airport\" ]\n },\n {\n \"long_name\" : \"Central Park\",\n \"short_name\" : \"Central Park\",\n \"types\" : [ \"park\" ]\n },\n {\n \"long_name\" : \"Statue of Liberty\",\n \"short_name\" : \"Statue of Liberty\",\n \"types\" : [ \"point_of_interest\" ]\n },\n {\n \"long_name\" : \"272510 Long\",\n \"short_name\" : \"272510 Short\",\n \"types\" : [ \"post_box\" ]\n },\n {\n \"long_name\" : \"13.5\",\n \"short_name\" : \"13.5\",\n \"types\" : [ \"floor\" ]\n }\n ],\n \"formatted_address\" : \"80 Leonard Street, New York, NY 10013, USA\",\n \"geometry\" : {\n \"location\" : {\n \"lat\" : 40.71729149999999,\n \"lng\" : -74.00512060\n },\n \"location_type\" : \"ROOFTOP\",\n \"viewport\" : {\n \"northeast\" : {\n \"lat\" : 40.71864048029149,\n \"lng\" : -74.00377161970849\n },\n \"southwest\" : {\n \"lat\" : 40.71594251970850,\n \"lng\" : -74.00646958029149\n }\n }\n },\n \"postcode_localities\" : [],\n \"types\" : [ \"street_address\" ]\n }\n ],\n \"status\" : \"OK\"\n}\n" + end + end