summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2017-07-18 15:09:04 +1000
committerSimon Knox <psimyn@gmail.com>2017-08-10 09:37:25 +1000
commit8858ddaf83e57adc6c003e03e72929f6068a6bfa (patch)
treefa1994c3d75d72d511ca495842778aeb78880446 /spec/views
parentcfcd1601522c52be96097956b0e3a56be3a3ffcb (diff)
downloadgitlab-ce-8858ddaf83e57adc6c003e03e72929f6068a6bfa.tar.gz
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/notes/_more_actions_dropdown.html.haml_spec.rb6
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