diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-09 15:08:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-09 15:08:22 +0300 |
commit | d022b7432efd720f0cf5f8d2a2cdaac7619bab57 (patch) | |
tree | 5b6e0a107019e8160957624380919913b084a68d /spec/views | |
parent | 73add99b1f4ce720f1fe00e828fb6991f27af6fb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/pipelines/show.html.haml_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/views/projects/pipelines/show.html.haml_spec.rb b/spec/views/projects/pipelines/show.html.haml_spec.rb index 49add434ab5..b998023b40e 100644 --- a/spec/views/projects/pipelines/show.html.haml_spec.rb +++ b/spec/views/projects/pipelines/show.html.haml_spec.rb @@ -16,24 +16,6 @@ RSpec.describe 'projects/pipelines/show' do stub_feature_flags(new_pipeline_form: false) end - shared_examples 'pipeline with warning messages' do - let(:warning_messages) do - [double(content: 'warning 1'), double(content: 'warning 2')] - end - - before do - allow(pipeline).to receive(:warning_messages).and_return(warning_messages) - end - - it 'displays the warnings' do - render - - expect(rendered).to have_css('.bs-callout-warning') - expect(rendered).to have_content('warning 1') - expect(rendered).to have_content('warning 2') - end - end - context 'when pipeline has errors' do before do allow(pipeline).to receive(:yaml_errors).and_return('some errors') @@ -51,10 +33,6 @@ RSpec.describe 'projects/pipelines/show' do expect(rendered).not_to have_css('ul.pipelines-tabs') end - - context 'when pipeline has also warnings' do - it_behaves_like 'pipeline with warning messages' - end end context 'when pipeline is valid' do @@ -69,9 +47,5 @@ RSpec.describe 'projects/pipelines/show' do expect(rendered).to have_css('ul.pipelines-tabs') end - - context 'when pipeline has warnings' do - it_behaves_like 'pipeline with warning messages' - end end end |