In which I join a long list of folks who have typoed this: it's "lon"

not "long"
This commit is contained in:
Jordan Sissel 2013-12-16 15:47:13 -08:00
parent c5729ecbd5
commit ffbe9a752b

View file

@ -222,7 +222,7 @@ describe "outputs/elasticsearch_http" do
end
it "make [geoip][location] a geo_point" do
results = @es.search(:body => { "filter" => { "geo_distance" => { "distance" => "1000km", "geoip.location" => { "lat" => 0.5, "long" => 0.5 } } } })
results = @es.search(:body => { "filter" => { "geo_distance" => { "distance" => "1000km", "geoip.location" => { "lat" => 0.5, "lon" => 0.5 } } } })
insist { results["hits"]["total"] } == 1
insist { results["hits"]["hits"][0]["_source"]["geoip"]["location"] } == [ 0.0, 0.0 ]
end