Revert "Champ related cleanups and refactoring"

This commit is contained in:
Colin Darie 2024-08-30 16:43:30 +02:00 committed by GitHub
parent 7693d216d8
commit e7443c2308
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 173 additions and 158 deletions

View file

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