Revert "Revert "Merge pull request #10771 from tchak/refactor-champs-revert""

This reverts commit 10a1ae5534.
This commit is contained in:
Paul Chavard 2024-09-20 14:54:26 +02:00
parent b6aac5f80b
commit 6254b50de9
No known key found for this signature in database
35 changed files with 205 additions and 189 deletions

View file

@ -2,7 +2,10 @@
describe Champs::RNAChamp do
let(:champ) { Champs::RNAChamp.new(value: "W182736273", dossier: build(:dossier)) }
before { allow(champ).to receive(:type_de_champ).and_return(build(:type_de_champ_rna)) }
before do
allow(champ).to receive(:type_de_champ).and_return(build(:type_de_champ_rna))
allow(champ).to receive(:in_dossier_revision?).and_return(true)
end
def with_value(value)
champ.tap { _1.value = value }
end