Commit 7d36c889 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix detailed status specs for pipeline stage model

parent be13fc68
...@@ -68,7 +68,9 @@ describe Ci::Stage, models: true do ...@@ -68,7 +68,9 @@ describe Ci::Stage, models: true do
end end
describe '#detailed_status' do describe '#detailed_status' do
subject { stage.detailed_status } let(:user) { create(:user) }
subject { stage.detailed_status(user) }
context 'when build is created' do context 'when build is created' do
let!(:stage_build) { create_job(:ci_build, status: :created) } let!(:stage_build) { create_job(:ci_build, status: :created) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment