소스 검색

Fix the order of receivers in the DotHelper specs

This should fix occasional build failure on CI.
Akinori MUSHA 8 년 전
부모
커밋
faa2789a0c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      spec/helpers/dot_helper_spec.rb

+ 5 - 0
spec/helpers/dot_helper_spec.rb

@@ -53,6 +53,11 @@ describe DotHelper do
         ]
         ]
         @foo.reload
         @foo.reload
         @bar2.reload
         @bar2.reload
+
+        # Fix the order of receivers
+        @agents.each do |agent|
+          stub.proxy(agent).receivers { |orig| orig.order(:id) }
+        end
       end
       end
 
 
       it "generates a DOT script" do
       it "generates a DOT script" do