Skip to content

Commit

Permalink
fix: Custom proposal states specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Jan 5, 2024
1 parent 95dd802 commit 5eba8f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/services/decidim/proposals/proposal_serializer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ module Proposals
described_class.new(proposal)
end

let!(:proposal) { create(:proposal, :accepted, component: proposals_component) }
let!(:proposal) { create(:proposal, :accepted, component: component) }
let!(:category) { create(:category, participatory_space: component.participatory_space) }
let!(:scope) { create(:scope, organization: component.participatory_space.organization) }
let(:participatory_process) { component.participatory_space }
let(:component) { proposal.component }
let(:component) { create(:extended_proposal_component, manifest_name: "proposals") }

let!(:meetings_component) { create(:component, manifest_name: "meetings", participatory_space: participatory_process) }
let(:meetings) { create_list(:meeting, 2, component: meetings_component) }
Expand Down Expand Up @@ -142,7 +142,7 @@ module Proposals
end

context "with proposal having an answer" do
let!(:proposal) { create(:proposal, :with_answer, component: proposals_component) }
let!(:proposal) { create(:proposal, :with_answer, component: component) }

it "serializes the answer" do
expect(serialized).to include(answer: expected_answer)
Expand Down

0 comments on commit 5eba8f5

Please sign in to comment.