tag 'groupe instructeur' uniquement si la procedure est routee

This commit is contained in:
clemkeirua 2020-02-19 15:47:22 +01:00 committed by GitHub Action
parent 059d80ea34
commit 48d2093577
2 changed files with 19 additions and 23 deletions

View file

@ -83,13 +83,13 @@ describe TagsSubstitutionConcern, type: :model do
dossier.reload
end
it { expect(procedure.groupe_instructeurs.size).to eq(2) }
it { expect(procedure.routee?).to eq(true) }
it { is_expected.to eq(label) }
end
context 'and the dossier has no groupe instructeur' do
it { is_expected.to eq(template) }
it { expect(procedure.routee?).to eq(false) }
it { is_expected.to eq('défaut') }
end
end