diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-08 12:09:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-08 12:09:44 +0300 |
commit | 058e1a233fc1d96917c72cfab552c72db93f4f8b (patch) | |
tree | f96445a056696c79e520e67ae01d7e055485d137 /spec/helpers | |
parent | 24fa0480c03a086451f592ddcacc644e560972cc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/projects/pipeline_helper_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/helpers/projects/pipeline_helper_spec.rb b/spec/helpers/projects/pipeline_helper_spec.rb index d04aa9a9d04..2b2dad286c7 100644 --- a/spec/helpers/projects/pipeline_helper_spec.rb +++ b/spec/helpers/projects/pipeline_helper_spec.rb @@ -11,7 +11,11 @@ RSpec.describe Projects::PipelineHelper do let_it_be(:pipeline) { Ci::PipelinePresenter.new(raw_pipeline, current_user: user)} describe '#js_pipeline_tabs_data' do - subject(:pipeline_tabs_data) { helper.js_pipeline_tabs_data(project, pipeline) } + before do + project.add_developer(user) + end + + subject(:pipeline_tabs_data) { helper.js_pipeline_tabs_data(project, pipeline, user) } it 'returns pipeline tabs data' do expect(pipeline_tabs_data).to include({ |