summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-12 15:20:21 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-12 15:40:28 +0100
commit7d36c88916717646f583a95118a47a095ab449a0 (patch)
treec1874b8e22c964cc351a270c0e2841280b1667f7
parentbe13fc68e74cd6820a5b175365f72f12de339e57 (diff)
downloadgitlab-ce-7d36c88916717646f583a95118a47a095ab449a0.tar.gz
Fix detailed status specs for pipeline stage model
-rw-r--r--spec/models/ci/stage_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/models/ci/stage_spec.rb b/spec/models/ci/stage_spec.rb
index f232761dba2..8fff38f7cda 100644
--- a/spec/models/ci/stage_spec.rb
+++ b/spec/models/ci/stage_spec.rb
@@ -68,7 +68,9 @@ describe Ci::Stage, models: true do
end
describe '#detailed_status' do
- subject { stage.detailed_status }
+ let(:user) { create(:user) }
+
+ subject { stage.detailed_status(user) }
context 'when build is created' do
let!(:stage_build) { create_job(:ci_build, status: :created) }