spec: another isolated type_de_champ_repetition

This commit is contained in:
simon lehericey 2022-05-04 15:01:32 +02:00
parent 0fc71afc29
commit d33e7c8cab

View file

@ -90,7 +90,8 @@ shared_examples 'type_de_champ_spec' do
end end
describe 'changing the type_champ from a repetition' do describe 'changing the type_champ from a repetition' do
let(:tdc) { create(:type_de_champ_repetition, :with_types_de_champ) } let!(:procedure) { create(:procedure) }
let(:tdc) { create(:type_de_champ_repetition, :with_types_de_champ, procedure: procedure) }
before do before do
tdc.update_attribute('type_champ', target_type_champ) tdc.update_attribute('type_champ', target_type_champ)