diff options
author | Simon Knox <psimyn@gmail.com> | 2017-07-18 15:09:04 +1000 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-08-10 09:37:25 +1000 |
commit | 8858ddaf83e57adc6c003e03e72929f6068a6bfa (patch) | |
tree | fa1994c3d75d72d511ca495842778aeb78880446 /spec/views | |
parent | cfcd1601522c52be96097956b0e3a56be3a3ffcb (diff) | |
download | gitlab-ce-8858ddaf83e57adc6c003e03e72929f6068a6bfa.tar.gz |
take edit note button out of dropdown34527-make-edit-comment-button-always-available-outside-of-dropdown
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 |