remove dead code

This commit is contained in:
Christophe Robillard 2020-05-20 16:53:38 +02:00
parent 4839506374
commit b0aa005769

View file

@ -159,12 +159,6 @@ feature 'Instructing a dossier:' do
click_on 'Demander un avis'
end
def test_mail(to, content)
mail = ActionMailer::Base.deliveries.last
expect(mail.to).to match([to])
expect(mail.body.parts.map(&:to_s)).to all(include(content))
end
def test_statut_bar(a_suivre: 0, suivi: 0, traite: 0, tous_les_dossiers: 0, archive: 0)
texts = [
"à suivre #{a_suivre}",
@ -177,13 +171,6 @@ feature 'Instructing a dossier:' do
texts.each { |text| expect(page).to have_text(text) }
end
def avis_sign_up(avis, email)
visit sign_up_instructeur_avis_path(avis, email)
fill_in 'user_password', with: 'démarches-simplifiées-pwd'
click_on 'Créer un compte'
expect(page).to have_current_path(instructeur_avis_index_path)
end
def dossier_present?(id, statut)
within(:css, '.dossiers-table') do
expect(page).to have_text(id)