Revert "Champ related cleanups and refactoring"
This commit is contained in:
parent
7693d216d8
commit
e7443c2308
30 changed files with 173 additions and 158 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue