diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-22 18:07:57 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-22 18:07:57 +0000 |
commit | 277c0c75bf32b40d882c35feafaae90f69c40dd9 (patch) | |
tree | 35f3969f59c1886fcfa71812cb2b942c46d9dffe /spec/views | |
parent | 5e44c2ba46e780552317dec29e3b51282dfd5696 (diff) | |
download | gitlab-ce-277c0c75bf32b40d882c35feafaae90f69c40dd9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/_flash_messages.html.haml_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/views/projects/_flash_messages.html.haml_spec.rb b/spec/views/projects/_flash_messages.html.haml_spec.rb index e1858229208..231aa12d920 100644 --- a/spec/views/projects/_flash_messages.html.haml_spec.rb +++ b/spec/views/projects/_flash_messages.html.haml_spec.rb @@ -12,10 +12,10 @@ RSpec.describe 'projects/_flash_messages' do before do allow(view).to receive(:current_user).and_return(user) - allow(view).to receive(:can?).with(user, :download_code, project).and_return(true) + allow(view).to receive(:can?).with(user, :read_code, project).and_return(true) end - context 'when current_user has download_code permission' do + context 'when current_user has read_code permission' do context 'when user has a terraform state' do let_it_be(:project) { create(:project) } let_it_be(:terraform_state) { create(:terraform_state, :locked, :with_version, project: project) } |