Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaeftekhar committed Nov 3, 2023
1 parent 4febdf3 commit 447cccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/cells/decidim/plans/plan_form_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Plans
class PlanFormCell < Decidim::ViewModel
include Decidim::Plans::ApplicationHelper
include ActionView::Helpers::FormOptionsHelper
include ::Decidim::LayoutHelper

delegate(
:current_user,
Expand Down
3 changes: 1 addition & 2 deletions spec/cells/decidim/plans/plan_m_cell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 447cccf

Please sign in to comment.