amelioration(expert.sign-in): ETQ expert, je suis redirigé vers la page listant les avis a donner ap connexion
This commit is contained in:
parent
b56d5199e2
commit
4380fecd73
3 changed files with 15 additions and 4 deletions
|
@ -9,6 +9,16 @@ describe RootController, type: :controller do
|
|||
it { expect(subject).to redirect_to(dossiers_path) }
|
||||
end
|
||||
|
||||
context 'when Expert is connected' do
|
||||
let(:expert) { create(:expert) }
|
||||
|
||||
before do
|
||||
sign_in(expert.user)
|
||||
end
|
||||
|
||||
it { expect(subject).to redirect_to(expert_all_avis_path) }
|
||||
end
|
||||
|
||||
context 'when Instructeur is connected' do
|
||||
let(:instructeur) { create(:instructeur) }
|
||||
let(:procedure) { create(:procedure, :published) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue