spec/nanoc/base/directed_graph_spec.rb in nanoc-4.7.7 vs spec/nanoc/base/directed_graph_spec.rb in nanoc-4.7.8

- old
+ new

@@ -25,9 +25,21 @@ end it { is_expected.to eq([2, 3]) } end + context 'one cycle with tail' do + before do + graph.add_edge(1, 2) + graph.add_edge(2, 20) + graph.add_edge(20, 21) + graph.add_edge(2, 3) + graph.add_edge(3, 1) + end + + it { is_expected.to eq([1, 2, 3]) } + end + context 'large cycle' do before do graph.add_edge(1, 2) graph.add_edge(2, 3) graph.add_edge(3, 4)