From faa2789a0c0ebb7e33a7d021e193f27c55037474 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 27 Oct 2016 16:31:24 +0900 Subject: [PATCH] Fix the order of receivers in the DotHelper specs This should fix occasional build failure on CI. --- spec/helpers/dot_helper_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/helpers/dot_helper_spec.rb b/spec/helpers/dot_helper_spec.rb index ae7767883a..5d168f66f5 100644 --- a/spec/helpers/dot_helper_spec.rb +++ b/spec/helpers/dot_helper_spec.rb @@ -53,6 +53,11 @@ def check ] @foo.reload @bar2.reload + + # Fix the order of receivers + @agents.each do |agent| + stub.proxy(agent).receivers { |orig| orig.order(:id) } + end end it "generates a DOT script" do