diff --git a/app/views/admin/sections/_section.html.erb b/app/views/admin/sections/_section.html.erb index 3b3264d246348d7437bbd6ff1aca8bc97529f99f..9cfb888172268a8a5078d6898c860407c1c5667d 100644 --- a/app/views/admin/sections/_section.html.erb +++ b/app/views/admin/sections/_section.html.erb @@ -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 diff --git a/test/controllers/admin/sections_controller_test.rb b/test/controllers/admin/sections_controller_test.rb index e172199d6737798c59086e6da6978515187dde9a..00ca204c5938f8a29d80f7ebbc1ffb8aceabb2aa 100644 --- a/test/controllers/admin/sections_controller_test.rb +++ b/test/controllers/admin/sections_controller_test.rb @@ -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))