refactor(spec): champs_* -> project_champs_*
This commit is contained in:
parent
ecbf985147
commit
7a39267473
44 changed files with 254 additions and 265 deletions
|
@ -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 n’ont pas encore été déposées")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue