diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-08 03:08:48 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-08 03:08:48 +0000 |
commit | baa5da6de5e05bfa0f0d96d26f3ace54041aaf92 (patch) | |
tree | 3870994c882fd02ac117c08c66aa629a3da12b46 /spec/views | |
parent | 044a953eb6b92e39cf32678296aa219176c9ad92 (diff) | |
download | gitlab-ce-baa5da6de5e05bfa0f0d96d26f3ace54041aaf92.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/notes/_more_actions_dropdown.html.haml_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/views/projects/notes/_more_actions_dropdown.html.haml_spec.rb b/spec/views/projects/notes/_more_actions_dropdown.html.haml_spec.rb index 3776af9e757..7886a811c9a 100644 --- a/spec/views/projects/notes/_more_actions_dropdown.html.haml_spec.rb +++ b/spec/views/projects/notes/_more_actions_dropdown.html.haml_spec.rb @@ -17,7 +17,7 @@ RSpec.describe 'projects/notes/_more_actions_dropdown' do it 'shows Report abuse to admin button if not editable and not current users comment' do render 'projects/notes/more_actions_dropdown', current_user: not_author_user, note_editable: false, note: note - expect(rendered).to have_link('Report abuse to admin') + expect(rendered).to have_link('Report abuse to administrator') end it 'does not show the More actions button if not editable and current users comment' do @@ -26,10 +26,10 @@ RSpec.describe 'projects/notes/_more_actions_dropdown' do expect(rendered).not_to have_selector('.dropdown.more-actions') end - it 'shows Report abuse to admin and Delete buttons if editable and not current users comment' do + it 'shows Report abuse and Delete buttons if editable and not current users comment' do render 'projects/notes/more_actions_dropdown', current_user: not_author_user, note_editable: true, note: note - expect(rendered).to have_link('Report abuse to admin') + expect(rendered).to have_link('Report abuse to administrator') expect(rendered).to have_link('Delete comment') end |