test/query_test.rb in geocoder-1.1.4 vs test/query_test.rb in geocoder-1.1.5
- old
+ new
@@ -18,9 +18,14 @@
assert Geocoder::Query.new("\t ").blank?
assert !Geocoder::Query.new("a").blank?
assert !Geocoder::Query.new("Москва").blank? # no ASCII characters
end
+ def test_blank_query_detection_for_coordinates
+ assert Geocoder::Query.new([nil,nil]).blank?
+ assert Geocoder::Query.new([87,nil]).blank?
+ end
+
def test_coordinates_detection
assert Geocoder::Query.new("51.178844,5").coordinates?
assert Geocoder::Query.new("51.178844, -1.826189").coordinates?
assert !Geocoder::Query.new("232.65.123").coordinates?
end