Revert "Revert "Merge pull request #10771 from tchak/refactor-champs-revert""
This reverts commit 10a1ae5534
.
This commit is contained in:
parent
b6aac5f80b
commit
6254b50de9
35 changed files with 205 additions and 189 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue