Skip to content

Commit

Permalink
Fix specs by adding a sanitizer for category name in idea cell
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Dec 5, 2024
1 parent aae052c commit 6a78bfd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/cells/decidim/ideas/idea_m_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 6a78bfd

Please sign in to comment.