Skip to content

Commit

Permalink
Fix failing spec by using dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdijk committed Sep 28, 2012
1 parent ba37dda commit 491c319
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/integration/rest_batch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 491c319

Please sign in to comment.