Fix detailed status specs for pipeline stage model
This commit is contained in:
parent
be13fc68e7
commit
7d36c88916
1 changed files with 3 additions and 1 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue