Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit c314871

Browse files
Fix random failing spec
1 parent eed7718 commit c314871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/graph/renderer_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
let(:project) { create(:project) }
77

88
let!(:task0) { create(:task, graph: project.graph, type: "epic") }
9-
let!(:task1) { create(:task, graph: project.graph) }
9+
let!(:task1) { create(:task, graph: project.graph, type: "task") }
1010

1111
before { create(:edge, graph: project.graph, from: task0, type: "related_to", to: task1) }
1212

@@ -24,7 +24,7 @@
2424
it "returns a list of edges" do
2525
expect(renderer.to_h.fetch(:edges))
2626
.to match_array [
27-
including(source: 1, target: 0, label: "Related To"),
27+
including(source: 0, target: 1, label: "Related To"),
2828
]
2929
end
3030
end

0 commit comments

Comments
 (0)