From 5d4e2d064c2e9798938d0a22ce734ec7ebe28552 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Fri, 26 Jul 2013 17:12:57 -0500 Subject: [PATCH] adding test... --- spec/integration/rest_plugin_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/integration/rest_plugin_spec.rb b/spec/integration/rest_plugin_spec.rb index 3a44a4c..78ba4d0 100644 --- a/spec/integration/rest_plugin_spec.rb +++ b/spec/integration/rest_plugin_spec.rb @@ -1,3 +1,5 @@ +# Encoding: utf-8 + require 'spec_helper' describe Neography::Rest do @@ -51,6 +53,17 @@ existing_node["data"][0][0]["self"].split('/').last.should == id end + it "can get a node with a tilde" do + new_node = @neo.create_node("name" => "Ateísmo Sureño") + id = new_node["self"].split('/').last + existing_node = @neo.execute_query("start n=node(#{id}) return n") + existing_node.should_not be_nil + existing_node.should have_key("data") + existing_node.should have_key("columns") + existing_node["data"][0][0]["self"].split('/').last.should == id + existing_node["data"][0][0]["data"]["name"].should == "Ateísmo Sureño" + end + it "can get the a node with a variable" do new_node = @neo.create_node id = new_node["self"].split('/').last