diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-18 00:07:42 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-18 00:07:42 +0000 |
| commit | c8ccf45aa0aa17413b107f9bbf9d6f160eaa8779 (patch) | |
| tree | 77b07d805562786cf9b218e25e0ed18fae396448 /spec/views/projects | |
| parent | 360ee1db0bf3bba2fc7aad7f230ec80829561227 (diff) | |
| download | gitlab-ce-c8ccf45aa0aa17413b107f9bbf9d6f160eaa8779.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/projects')
| -rw-r--r-- | spec/views/projects/pipeline_schedules/_pipeline_schedule.html.haml_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/views/projects/pipeline_schedules/_pipeline_schedule.html.haml_spec.rb b/spec/views/projects/pipeline_schedules/_pipeline_schedule.html.haml_spec.rb index 37c9908af1d..13ec7207ec9 100644 --- a/spec/views/projects/pipeline_schedules/_pipeline_schedule.html.haml_spec.rb +++ b/spec/views/projects/pipeline_schedules/_pipeline_schedule.html.haml_spec.rb @@ -22,7 +22,7 @@ RSpec.describe 'projects/pipeline_schedules/_pipeline_schedule' do let(:user) { maintainer } before do - allow(view).to receive(:can?).with(maintainer, :take_ownership_pipeline_schedule, pipeline_schedule).and_return(true) + allow(view).to receive(:can?).with(maintainer, :admin_pipeline_schedule, pipeline_schedule).and_return(true) end it 'non-owner can take ownership of pipeline' do @@ -36,7 +36,7 @@ RSpec.describe 'projects/pipeline_schedules/_pipeline_schedule' do let(:user) { owner } before do - allow(view).to receive(:can?).with(owner, :take_ownership_pipeline_schedule, pipeline_schedule).and_return(false) + allow(view).to receive(:can?).with(owner, :admin_pipeline_schedule, pipeline_schedule).and_return(false) end it 'owner cannot take ownership of pipeline' do |
