Skip to content

Commit

Permalink
I think this spec was wrong too, based on bug in clone_into.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darrick Wiebe committed Sep 20, 2012
1 parent 5bcf406 commit e16a3e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/pacer/utils/tsort_spec.rb
Expand Up @@ -76,9 +76,7 @@
vertices = graph.v.only([a,b]).result
edges = graph.e.lookahead(:min => 2) { |e| e.both_v.only(vertices) }.result
subgraph = (vertices.to_a + edges.to_a).to_route(:graph => graph, :element_type => :mixed).subgraph
# The elements aren't the same since they've been copied into a
# new graph:
subgraph.v(Pacer::Utils::TSort).tsort.element_ids.to_a.should == ['b', 'a']
subgraph.v(Pacer::Utils::TSort).tsort.element_ids.to_a.should == ['a', 'b']
end

it 'can be sorted with a custom dependencies block' do
Expand Down

0 comments on commit e16a3e4

Please sign in to comment.