lib/decidim/dev/test/rspec_support/content_processing.rb in decidim-dev-0.22.0 vs lib/decidim/dev/test/rspec_support/content_processing.rb in decidim-dev-0.23.0
- old
+ new
@@ -10,11 +10,11 @@
content.scan("foo").size
end
end
class ContentRenderers::DummyFooRenderer < ContentRenderers::BaseRenderer
- def render
+ def render(_options = nil)
content.gsub("%lorem%", "<em>neque dicta enim quasi</em>")
end
end
class ContentParsers::DummyBarParser < ContentParsers::BaseParser
@@ -26,10 +26,10 @@
content.scan("bar").size
end
end
class ContentRenderers::DummyBarRenderer < ContentRenderers::BaseRenderer
- def render
+ def render(_options = nil)
content.gsub("*ipsum*", "<em>illo qui voluptas</em>")
end
end
end