aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/table_builder_helper.rb1
-rw-r--r--spec/helpers/table_builder_helper_spec.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb
index 090f78c0a..7cdc7eabb 100644
--- a/app/helpers/table_builder_helper.rb
+++ b/app/helpers/table_builder_helper.rb
@@ -127,6 +127,7 @@ module TableBuilderHelper
if action == :delete
if policy(item).present?
if policy(item).destroy?
+ # TODO: This tag is exactly the same as the one below it
content_tag :li, '', class: 'delete-action' do
link_to(polymorph_url, method: :delete, data: { confirm: 'Etes-vous sûr(e) de vouloir effectuer cette action ?' }) do
txt = t("actions.#{action}")
diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb
index c685df4e4..b90053015 100644
--- a/spec/helpers/table_builder_helper_spec.rb
+++ b/spec/helpers/table_builder_helper_spec.rb
@@ -39,6 +39,7 @@ describe TableBuilderHelper, type: :helper do
id: referentials[0].workbench.id,
# These are added by WorkbenchesController#query_params
+ # TODO: Remove these params from here and the expected HTML as they don't relate to the test at hand
q: {
archived_at_not_null: 1,
archived_at_null: 1