diff --git a/app/cells/decidim/plans/plan_form_cell.rb b/app/cells/decidim/plans/plan_form_cell.rb index 154e8413..d3e15ee3 100644 --- a/app/cells/decidim/plans/plan_form_cell.rb +++ b/app/cells/decidim/plans/plan_form_cell.rb @@ -5,6 +5,7 @@ module Plans class PlanFormCell < Decidim::ViewModel include Decidim::Plans::ApplicationHelper include ActionView::Helpers::FormOptionsHelper + include ::Decidim::LayoutHelper delegate( :current_user, diff --git a/spec/cells/decidim/plans/plan_m_cell_spec.rb b/spec/cells/decidim/plans/plan_m_cell_spec.rb index 1832ac36..f72fe78f 100644 --- a/spec/cells/decidim/plans/plan_m_cell_spec.rb +++ b/spec/cells/decidim/plans/plan_m_cell_spec.rb @@ -34,8 +34,7 @@ module Decidim::Plans it "renders the published_at date" do published_date = I18n.l(published_at.to_date, format: :decidim_short) creation_date = I18n.l(created_at.to_date, format: :decidim_short) - - expect(subject).to have_css(".creation_date_status", text: published_date) + expect(subject).to have_css(".card__info__item", text: published_date) expect(subject).not_to have_css(".creation_date_status", text: creation_date) end