fix(spec): broken

This commit is contained in:
mfo 2024-09-02 09:55:17 +02:00
parent 46547cb2cd
commit 7c3dd84e9f
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -19,7 +19,7 @@ module Maintenance
before { invalid_champ.update!(row_id: dossier.champs[1].row_id) } before { invalid_champ.update!(row_id: dossier.champs[1].row_id) }
it "dissociate champ having a row_id without a parent_id" do it "dissociate champ having a row_id without a parent_id" do
expect { described_class.process(dossier) } expect { described_class.process(dossier.id) }
.to change { Champ.exists?(invalid_champ.id) }.from(true).to(false) .to change { Champ.exists?(invalid_champ.id) }.from(true).to(false)
end end
end end