Skip to content

Commit

Permalink
making tests 1.8.7 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Mar 22, 2012
1 parent 8a73e74 commit c7b2149
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/integration/rest_path_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
rel3_4 = @neo.create_relationship("friends", new_node3, new_node4)
rel4_5 = @neo.create_relationship("friends", new_node4, new_node5)
rel3_5 = @neo.create_relationship("friends", new_node3, new_node5)
@neo.set_relationship_properties(rel1_2, {weight: 1})
@neo.set_relationship_properties(rel2_3, {weight: 1})
@neo.set_relationship_properties(rel3_4, {weight: 1})
@neo.set_relationship_properties(rel4_5, {weight: 1})
@neo.set_relationship_properties(rel3_5, {weight: 3})
@neo.set_relationship_properties(rel1_2, {:weight => 1})
@neo.set_relationship_properties(rel2_3, {:weight => 1})
@neo.set_relationship_properties(rel3_4, {:weight => 1})
@neo.set_relationship_properties(rel4_5, {:weight => 1})
@neo.set_relationship_properties(rel3_5, {:weight => 3})
path = @neo.get_shortest_weighted_path(new_node1, new_node5, {"type"=> "friends", "direction" => "out"})
path.first["start"].should == new_node1["self"]
path.first["end"].should == new_node5["self"]
Expand Down

0 comments on commit c7b2149

Please sign in to comment.