diff --git a/app/cells/decidim/ideas/idea_m_cell.rb b/app/cells/decidim/ideas/idea_m_cell.rb index d4e7773..14a0e90 100644 --- a/app/cells/decidim/ideas/idea_m_cell.rb +++ b/app/cells/decidim/ideas/idea_m_cell.rb @@ -65,7 +65,7 @@ def body end def category - translated_attribute(model.category.name) if has_category? + decidim_sanitize translated_attribute(model.category.name) if has_category? end def full_category diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index bdbc0f1..1c6c02e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,7 +3,6 @@ require "decidim/dev" ENV["ENGINE_ROOT"] = File.dirname(__dir__) -ENV["NODE_ENV"] ||= "test" Decidim::Dev.dummy_app_path = File.expand_path(File.join(__dir__, "decidim_dummy_app"))