test/query_test.rb in geocoder-1.1.8 vs test/query_test.rb in geocoder-1.1.9
- old
+ new
@@ -42,6 +42,11 @@
assert Geocoder::Query.new("127.0.0.1").loopback_ip_address?
assert !Geocoder::Query.new("232.65.123.234").loopback_ip_address?
assert !Geocoder::Query.new("127 Main St.").loopback_ip_address?
assert !Geocoder::Query.new("John Doe\n127 Main St.\nAnywhere, USA").loopback_ip_address?
end
+
+ def test_sanitized_text_with_array
+ q = Geocoder::Query.new([43.1313,11.3131])
+ assert_equal "43.1313,11.3131", q.sanitized_text
+ end
end