diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-14 16:57:36 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-14 17:33:07 +0200 |
commit | 2f3dc314f42dbd79813e6251792853bc231e69dd (patch) | |
tree | f4f5254fd092c34568a7d998abe69923349bc733 /spec/views | |
parent | 4e60f79e4027961ed3ec33fc16e2260c660d545a (diff) | |
download | gitlab-ce-2f3dc314f42dbd79813e6251792853bc231e69dd.tar.gz |
Fix spec failuresgroup-similar
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/pipelines/show.html.haml_spec.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/spec/views/projects/pipelines/show.html.haml_spec.rb b/spec/views/projects/pipelines/show.html.haml_spec.rb index 920d7528892..c5b16c1c304 100644 --- a/spec/views/projects/pipelines/show.html.haml_spec.rb +++ b/spec/views/projects/pipelines/show.html.haml_spec.rb @@ -4,15 +4,14 @@ describe 'projects/pipelines/show' do include Devise::TestHelpers let(:project) { create(:project) } - let(:pipeline) do - create(:ci_empty_pipeline, project: project, - sha: project.commit.id) - end + let(:pipeline) { create(:ci_empty_pipeline, project: project, sha: project.commit.id) } before do + controller.prepend_view_path('app/views/projects') + create_build('build', 0, 'build') - create_build('test', 1, 'rspec 0 2') - create_build('test', 1, 'rspec 1 2') + create_build('test', 1, 'rspec 0:2') + create_build('test', 1, 'rspec 1:2') create_build('test', 1, 'audit') create_build('deploy', 2, 'production') @@ -38,7 +37,7 @@ describe 'projects/pipelines/show' do # builds expect(rendered).to have_text('rspec') - expect(rendered).to have_text('rspec 0:1') + expect(rendered).to have_text('rspec 0:2') expect(rendered).to have_text('production') expect(rendered).to have_text('jenkins') end |