From 447cccfb8bf39bb7f97fff9fc98c2e1e95c0cc99 Mon Sep 17 00:00:00 2001 From: Sina Eftekhar Date: Fri, 3 Nov 2023 11:35:45 +0200 Subject: [PATCH] Fix failing tests --- app/cells/decidim/plans/plan_form_cell.rb | 1 + spec/cells/decidim/plans/plan_m_cell_spec.rb | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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