Add isolated view spec for pipeline stage partial

This commit is contained in:
Grzegorz Bizon 2016-12-20 16:06:01 +01:00
parent 9c6480db89
commit ec4b1bc755
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
require 'spec_helper'
describe 'projects/pipelines/_stage', :view do
let(:project) { create(:project) }
let(:pipeline) { create(:ci_pipeline, project: project) }
let(:stage) { build(:ci_stage, pipeline: pipeline) }
before do
assign :stage, stage
create(:ci_build, name: 'test:build',
stage: stage.name,
pipeline: pipeline)
end
it 'shows the builds in the stage' do
render
expect(rendered).to have_text 'test:build'
end
end