Commit 117ccb89 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Fix milestone delete button showing for all users

parent 5e8138aa
...@@ -97,4 +97,15 @@ feature 'Milestone' do ...@@ -97,4 +97,15 @@ feature 'Milestone' do
end end
end end
end end
feature 'Deleting a milestone' do
scenario "The delete milestone button does not show for unauthorized users" do
create(:milestone, project: project, title: 8.7)
sign_out(user)
visit group_milestones_path(group)
expect(page).to have_selector('.js-delete-milestone-button', count: 0)
end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment