Created
January 26, 2014 22:44
-
-
Save maxdemarzi/8640460 to your computer and use it in GitHub Desktop.
Spatial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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