refactor(spec): champs_* -> project_champs_*

This commit is contained in:
Paul Chavard 2024-09-27 15:37:11 +02:00
parent ecbf985147
commit 7a39267473
No known key found for this signature in database
44 changed files with 254 additions and 265 deletions

View file

@ -21,7 +21,7 @@ RSpec.describe Dossiers::EnConstructionNotSubmittedComponent, type: :component d
end
context "with changes" do
before { fork.champs_public.first.update(value: "new value") }
before { fork.project_champs_public.first.update(value: "new value") }
it "inform user" do
expect(subject).to include("Des modifications nont pas encore été déposées")

View file

@ -113,7 +113,7 @@ describe EditableChamp::SectionComponent, type: :component do
end
it 'contains as many text champ as repetition.rows' do
expect(page).to have_selector("fieldset fieldset input[type=text]", count: dossier.champs_public.find(&:repetition?).rows.size)
expect(page).to have_selector("fieldset fieldset input[type=text]", count: dossier.project_champs_public.find(&:repetition?).rows.size)
end
end