From cff9c16be724398e3d6e7170cc9f5e39cfd8cdb7 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 18 Jan 2017 11:07:12 +0100 Subject: Pass memoizable warnings attribute to stage object --- spec/factories/ci/stages.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/factories/ci') diff --git a/spec/factories/ci/stages.rb b/spec/factories/ci/stages.rb index ee3b17b8bf1..7f557b25ccb 100644 --- a/spec/factories/ci/stages.rb +++ b/spec/factories/ci/stages.rb @@ -3,11 +3,12 @@ FactoryGirl.define do transient do name 'test' status nil + warnings nil pipeline factory: :ci_empty_pipeline end initialize_with do - Ci::Stage.new(pipeline, name: name, status: status) + Ci::Stage.new(pipeline, name: name, status: status, warnings: warnings) end end end -- cgit v1.2.3