diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-08-14 17:08:28 +0000 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-08-15 09:26:07 +1000 |
commit | b05ae3c95e880a891fb606457a72ac7b3b4594c7 (patch) | |
tree | b12f3ea78f6ed637b8a8d503dd2c02ab5281a749 /spec/views | |
parent | 52cd6fa366fae7eedb44708bd351b36947842632 (diff) | |
download | gitlab-ce-b05ae3c95e880a891fb606457a72ac7b3b4594c7.tar.gz |
Merge branch '34527-make-edit-comment-button-always-available-outside-of-dropdown' into 'master'
Resolve "Make edit comment button always available outside of dropdown"
Closes #34527
See merge request !12931
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/notes/_more_actions_dropdown.html.haml_spec.rb | 6 |
1 files changed, 2 insertions, 4 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 aea20d826d0..9c0be249a50 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 @@ -24,18 +24,16 @@ describe 'projects/notes/_more_actions_dropdown' do expect(rendered).not_to have_selector('.dropdown.more-actions') end - it 'shows Report as abuse, Edit and Delete buttons if editable and not current users comment' do + it 'shows Report as 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 as abuse') - expect(rendered).to have_button('Edit comment') expect(rendered).to have_link('Delete comment') end - it 'shows Edit and Delete buttons if editable and current users comment' do + it 'shows Delete button if editable and current users comment' do render 'projects/notes/more_actions_dropdown', current_user: author_user, note_editable: true, note: note - expect(rendered).to have_button('Edit comment') expect(rendered).to have_link('Delete comment') end end |