From 8b6604f4b1147096e4490305ae633db6b697a679 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Thu, 16 Feb 2012 10:59:19 -0600 Subject: [PATCH] just making sure --- spec/integration/rest_node_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/integration/rest_node_spec.rb b/spec/integration/rest_node_spec.rb index 417ca92..fb63273 100644 --- a/spec/integration/rest_node_spec.rb +++ b/spec/integration/rest_node_spec.rb @@ -45,6 +45,11 @@ new_node = @neo.create_unique_node(index_name, key, value, {"age" => 31, "name" => "Max"}) new_node["data"]["name"].should == "Max" new_node["data"]["age"].should == 31 + new_node_id = new_node["self"].split('/').last + existing_node = @neo.create_unique_node(index_name, key, value, {"age" => 31, "name" => "Max"}) + existing_node["self"].split('/').last.should == new_node_id + existing_node["data"]["name"].should == "Max" + existing_node["data"]["age"].should == 31 end end