From 491c31930335ac38ad98157c00f7b3bb9adb9b4d Mon Sep 17 00:00:00 2001 From: Roel van Dijk Date: Fri, 28 Sep 2012 22:25:14 +0200 Subject: [PATCH] Fix failing spec by using dead code. --- spec/integration/rest_batch_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/integration/rest_batch_spec.rb b/spec/integration/rest_batch_spec.rb index e35a888..269b253 100644 --- a/spec/integration/rest_batch_spec.rb +++ b/spec/integration/rest_batch_spec.rb @@ -355,14 +355,13 @@ it "can add a newly created node to an index" do key = generate_text(6) value = generate_text - new_index = @neo.get_node_index("test_node_index", key, value) batch_result = @neo.batch [:create_node, {"name" => "Max"}], [:add_node_to_index, "test_node_index", key, value, "{0}"] batch_result.first.should have_key("id") batch_result.first.should have_key("from") - existing_index = @neo.find_node_index("test_node_index", key, value) + existing_index = @neo.find_node_index("test_node_index", key, value) existing_index.should_not be_nil existing_index.first["self"].should == batch_result.first["body"]["self"] - @neo.remove_node_from_index("test_node_index", key, value, batch_result.first["body"]["self"].split('/').last) + @neo.remove_node_from_index("test_node_index", key, value, batch_result.first["body"]["self"].split('/').last) end it "can add a newly created relationship to an index" do