remove email_notifications_enabled column because of the new daily_email_notifications_enabled

This commit is contained in:
kara Diaby 2020-02-27 11:09:19 +01:00
parent 4934a6359b
commit 4a70a7fcc8
9 changed files with 14 additions and 16 deletions

View file

@ -424,7 +424,7 @@ describe Instructeurs::ProceduresController, type: :controller do
let(:assign_to) { instructeur.assign_to.joins(:groupe_instructeur).find_by(groupe_instructeurs: { procedure: procedure }) }
before do
patch :update_email_notifications, params: { procedure_id: procedure.id, assign_to: { id: assign_to.id, email_notifications_enabled: true } }
patch :update_email_notifications, params: { procedure_id: procedure.id, assign_to: { id: assign_to.id, daily_email_notifications_enabled: true } }
end
it { expect(instructeur.groupe_instructeur_with_email_notifications).to eq([procedure.defaut_groupe_instructeur]) }