aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-06-12 16:13:34 +0200
committerTeddy Wing2017-06-12 16:13:34 +0200
commitd488e4e7251d3e0cc5b8ffe8ddbe6960fa99d14c (patch)
treecda7bfca2b12f739c035292c78df897a44f8f9e4
parente7b663195bcf3370a4cca10d97453e62101e3f38 (diff)
downloadchouette-core-d488e4e7251d3e0cc5b8ffe8ddbe6960fa99d14c.tar.bz2
TableBuilder: Add a couple TODOs
I had added these last week uncommitted, but still haven't gotten to them. Figure I should just commit them to save them and remove them when I get to them. Refs #3479
-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