specs: rename Dossier's with_all_champs
to with_populated_champs
This better reflects what the trait is used for, and disambiguate it from the similarly named trait in the Procedure factory.
This commit is contained in:
parent
6c60c940d4
commit
b06183d7bf
8 changed files with 19 additions and 19 deletions
|
@ -256,7 +256,7 @@ describe API::V1::DossiersController do
|
|||
|
||||
describe 'repetition' do
|
||||
let(:procedure) { create(:procedure, :with_repetition, administrateur: admin) }
|
||||
let(:dossier) { create(:dossier, :en_construction, :with_all_champs, procedure: procedure) }
|
||||
let(:dossier) { create(:dossier, :en_construction, :with_populated_champs, procedure: procedure) }
|
||||
|
||||
subject { super().first[:rows] }
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ describe API::V2::GraphqlController do
|
|||
let(:dossier) do
|
||||
dossier = create(:dossier,
|
||||
:en_construction,
|
||||
:with_all_champs,
|
||||
:with_all_annotations,
|
||||
:with_populated_champs,
|
||||
:with_populated_annotations,
|
||||
:with_individual,
|
||||
procedure: procedure)
|
||||
create(:commentaire, :with_file, dossier: dossier, email: 'test@test.com')
|
||||
|
|
|
@ -560,8 +560,8 @@ describe Instructeurs::DossiersController, type: :controller do
|
|||
let(:dossier) do
|
||||
create(:dossier,
|
||||
:accepte,
|
||||
:with_all_champs,
|
||||
:with_all_annotations,
|
||||
:with_populated_champs,
|
||||
:with_populated_annotations,
|
||||
:with_motivation,
|
||||
:with_entreprise,
|
||||
:with_commentaires, procedure: procedure)
|
||||
|
@ -593,7 +593,7 @@ describe Instructeurs::DossiersController, type: :controller do
|
|||
build(:type_de_champ_repetition, :with_types_de_champ, position: 3)
|
||||
], instructeurs: instructeurs)
|
||||
end
|
||||
let(:dossier) { create(:dossier, :en_construction, :with_all_annotations, procedure: procedure) }
|
||||
let(:dossier) { create(:dossier, :en_construction, :with_populated_annotations, procedure: procedure) }
|
||||
let(:another_instructeur) { create(:instructeur) }
|
||||
let(:now) { Time.zone.parse('01/01/2100') }
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
describe RechercheController, type: :controller do
|
||||
let(:dossier) { create(:dossier, :en_construction, :with_all_annotations) }
|
||||
let(:dossier) { create(:dossier, :en_construction, :with_populated_annotations) }
|
||||
let(:dossier2) { create(:dossier, :en_construction, procedure: dossier.procedure) }
|
||||
let(:instructeur) { create(:instructeur) }
|
||||
|
||||
let(:dossier_with_expert) { avis.dossier }
|
||||
let(:avis) { create(:avis, dossier: create(:dossier, :en_construction, :with_all_annotations)) }
|
||||
let(:avis) { create(:avis, dossier: create(:dossier, :en_construction, :with_populated_annotations)) }
|
||||
|
||||
let(:user) { instructeur.user }
|
||||
|
||||
|
|
|
@ -879,7 +879,7 @@ describe Users::DossiersController, type: :controller do
|
|||
let(:dossier) do
|
||||
create(:dossier,
|
||||
:accepte,
|
||||
:with_all_champs,
|
||||
:with_populated_champs,
|
||||
:with_motivation,
|
||||
:with_commentaires,
|
||||
procedure: procedure,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue