Skip to content

Commit

Permalink
Fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu committed Oct 27, 2023
1 parent e9664dd commit ec8b18d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decidim-core/spec/models/decidim/endorsement_spec.rb
Expand Up @@ -86,8 +86,8 @@ module Decidim

it "sorts user_grup endorsements first and then by created_at" do
expected_sorting = [
endorsement.id, other_endorsement2.id,
other_endorsement1.id
other_endorsement1.id, endorsement.id,
other_endorsement2.id,
]
expect(resource.endorsements.for_listing.pluck(:id)).to eq(expected_sorting)
end
Expand Down

0 comments on commit ec8b18d

Please sign in to comment.