Fix detailed status specs for pipeline stage model

This commit is contained in:
Grzegorz Bizon 2016-12-12 15:20:21 +01:00
parent be13fc68e7
commit 7d36c88916

View file

@ -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) }