Skip to content

Commit

Permalink
fix spec for traverse
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGardenDubai committed Oct 17, 2011
1 parent 9b97130 commit d070b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/integration/rest_traverse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
paths.should_not be_nil

paths[0]["nodes"].should == [@new_node1["self"], @new_node2["self"]]
paths[1]["nodes"].should == [@new_node1["self"], @new_node2["self"], @new_node3["self"]]
paths[2]["nodes"].should == [@new_node1["self"], @new_node2["self"], @new_node5["self"]]
paths[1]["nodes"].should == [@new_node1["self"], @new_node2["self"], @new_node5["self"]]
paths[2]["nodes"].should == [@new_node1["self"], @new_node2["self"], @new_node3["self"]]
paths[3]["nodes"].should == [@new_node1["self"], @new_node2["self"], @new_node3["self"], @new_node4["self"]]
end

Expand Down Expand Up @@ -131,7 +131,7 @@
@neo.create_relationship("friends", @new_node3, @new_node4)
@neo.create_relationship("friends", @new_node4, @new_node5)
@neo.create_relationship("friends", @new_node3, @new_node5)
nodes = @neo.traverse(@new_node1, "nodes", {"relationships" => {"type"=> "friends", "direction" => "out"},
nodes = @neo.traverse(@new_node1, "node", {"relationships" => {"type"=> "friends", "direction" => "out"},
"return filter" => {"language" => "builtin", "name" => "all"},
"depth" => 4} )
nodes.should_not be_nil
Expand Down

0 comments on commit d070b78

Please sign in to comment.