Ajoute un flag pour qu'un expert ne puisse pas inviter une autre personne à donner son avis sur un dossier
This commit is contained in:
parent
cf08c7c40d
commit
9207cc5aa5
5 changed files with 44 additions and 6 deletions
|
@ -20,4 +20,12 @@ describe 'instructeurs/avis/instruction.html.haml', type: :view do
|
|||
let(:confidentiel) { false }
|
||||
it { is_expected.to have_text("Cet avis est partagé avec les autres experts") }
|
||||
end
|
||||
|
||||
context 'when an expert is not allowed to invite another expert' do
|
||||
let(:confidentiel) { false }
|
||||
before do
|
||||
Flipper.enable_actor(:expert_not_allowed_to_invite, avis.procedure)
|
||||
end
|
||||
it { is_expected.to have_no_text("Inviter des personnes à donner leur avis") }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue