same for direct access by champ.value

This commit is contained in:
simon lehericey 2024-12-12 13:20:30 +01:00
parent 5f63ade97a
commit a362e95542
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
3 changed files with 3 additions and 16 deletions

View file

@ -449,7 +449,7 @@ describe DossierRebaseConcern do
tdc_to_update.update(drop_down_options: ["option", "updated"])
end
it { expect { subject }.to change { dossier.project_champs_public.first.to_s }.from('v1').to('') }
it { expect { subject }.not_to change { dossier.project_champs_public.first.to_s } }
end
context 'when a dropdown unused option is removed' do
@ -495,7 +495,7 @@ describe DossierRebaseConcern do
tdc_to_update.update(drop_down_options: ["option", "updated"])
end
it { expect { subject }.to change { dossier.project_champs_public.first.to_s }.from('v1, option').to('option') }
it { expect { subject }.not_to change { dossier.project_champs_public.first.to_s } }
end
context 'when a dropdown unused option is removed' do