diff --git a/app/jobs/auto_receive_dossiers_for_procedure_job.rb b/app/jobs/auto_receive_dossiers_for_procedure_job.rb index 6ff7fa117..f55de439f 100644 --- a/app/jobs/auto_receive_dossiers_for_procedure_job.rb +++ b/app/jobs/auto_receive_dossiers_for_procedure_job.rb @@ -1,7 +1,7 @@ class AutoReceiveDossiersForProcedureJob < ApplicationJob queue_as :cron - def perform(procedure_id, state, gestionnaire_id = nil) + def perform(procedure_id, state) procedure = Procedure.find(procedure_id) gestionnaire = procedure.gestionnaire_for_cron_job diff --git a/spec/features/new_gestionnaire/gestionnaire_spec.rb b/spec/features/new_gestionnaire/gestionnaire_spec.rb index 220d28d93..dd0aab750 100644 --- a/spec/features/new_gestionnaire/gestionnaire_spec.rb +++ b/spec/features/new_gestionnaire/gestionnaire_spec.rb @@ -105,7 +105,7 @@ feature 'The gestionnaire part' do avis = dossier.avis.first test_mail(expert_email, sign_up_gestionnaire_avis_path(avis, expert_email)) - avis_sign_up(avis, expert_email, 'a good password') + avis_sign_up(avis, expert_email) expect(page).to have_current_path(gestionnaire_avis_index_path) expect(page).to have_text('avis à donner 1') @@ -225,7 +225,7 @@ feature 'The gestionnaire part' do texts.each { |text| expect(page).to have_text(text) } end - def avis_sign_up(avis, email, password) + def avis_sign_up(avis, email) visit sign_up_gestionnaire_avis_path(avis, email) fill_in 'gestionnaire_password', with: 'a good password' click_on 'Créer un compte'