Remove useless arguments from some methods
This commit is contained in:
parent
0596d53ac2
commit
0336ecf639
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue