instructeurs: alias instructeur.email
This also means we need to replace instances of `pluck` on the email column.
This commit is contained in:
parent
cd478b489e
commit
a462edb9bc
10 changed files with 15 additions and 11 deletions
|
@ -100,7 +100,7 @@ describe NewAdministrateur::GroupeInstructeursController, type: :controller do
|
|||
context 'of a new instructeur' do
|
||||
let(:new_instructeur_email) { 'new_instructeur@mail.com' }
|
||||
|
||||
it { expect(gi_1_1.instructeurs.pluck(:email)).to include(new_instructeur_email) }
|
||||
it { expect(gi_1_1.instructeurs.map(&:email)).to include(new_instructeur_email) }
|
||||
it { expect(flash.notice).to be_present }
|
||||
it { expect(response).to redirect_to(procedure_groupe_instructeur_path(procedure, gi_1_1)) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue