Skip to content

Instantly share code, notes, and snippets.

@maxdemarzi
Created January 26, 2014 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxdemarzi/8640460 to your computer and use it in GitHub Desktop.
Save maxdemarzi/8640460 to your computer and use it in GitHub Desktop.
Spatial
require 'spec_helper'
describe Neography::Rest do
before(:each) do
@neo = Neography::Rest.new
end
describe "the spatial plugin works" do
it "better work" do
node = @neo.create_node({:lat => 60.1, :lon => 15.2})
added = @neo.add_node_to_index("geom", "dummy", "dummy", node)
existing_node = @neo.execute_query("start node = node:geom('withinDistance:[60.0,15.0, 100.0]') return node")
puts existing_node.inspect
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment