Skip to content
Snippets Groups Projects
Commit 89ebe757 authored by Butler, Alexis (UG - Computer Science)'s avatar Butler, Alexis (UG - Computer Science)
Browse files

Passed admin section cont tests

parent f1e7ae60
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,6 @@
<h4><%= section.name %></h4>
</td>
<td>
<%= link_to fa_icon('trash'), [:admin, section], method: :delete, data: { confirm: t('.confirm') } %>
<%= link_to fa_icon('trash'), [:admin, section], class: 'btn btn-sm btn-danger', method: :delete, data: { confirm: t('.confirm') } %>
</td>
</tr>
\ No newline at end of file
......@@ -57,7 +57,7 @@ class Admin::SectionsControllerTest < ActionDispatch::IntegrationTest
assert_redirected_to(admin_sections_url)
assert_equal 'Section deleted', flash[:success]
end
test 'should not delete a product if not admin' do
test 'should not delete a section if not admin' do
sign_in_as_tester
assert_no_difference 'Section.count' do
delete admin_section_url(sections(:one))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment