fix: remove hardcoded .html.haml
from render
calls since it no longer works
This commit is contained in:
parent
42689e34ba
commit
e483bfbc76
45 changed files with 69 additions and 69 deletions
|
@ -1,4 +1,4 @@
|
|||
describe 'admin/_closed_mail_template_attestation_inconsistency_alert.html.haml', type: :view do
|
||||
describe 'admin/_closed_mail_template_attestation_inconsistency_alert', type: :view do
|
||||
let(:procedure) { create(:procedure, closed_mail: closed_mail, attestation_template: attestation_template) }
|
||||
let(:attestation_template) { nil }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'administrateurs/experts_procedures/index.html.haml', type: :view do
|
||||
describe 'administrateurs/experts_procedures/index', type: :view do
|
||||
let!(:procedure) { create(:procedure, :published) }
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'administrateurs/mail_templates/edit.html.haml', type: :view do
|
||||
describe 'administrateurs/mail_templates/edit', type: :view do
|
||||
let(:procedure) { create(:procedure) }
|
||||
let(:mail_template) { create(:received_mail, procedure: procedure) }
|
||||
let(:all_tags) { mail_template.tags }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'administrateurs/procedures/edit.html.haml' do
|
||||
describe 'administrateurs/procedures/edit' do
|
||||
let(:logo) { fixture_file_upload('spec/fixtures/files/logo_test_procedure.png', 'image/png') }
|
||||
let(:procedure) { create(:procedure, logo: logo, lien_site_web: 'http://some.website') }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'administrateurs/procedures/show.html.haml', type: :view do
|
||||
describe 'administrateurs/procedures/show', type: :view do
|
||||
let(:closed_at) { nil }
|
||||
let(:procedure) { create(:procedure, :with_service, closed_at: closed_at) }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'administrateurs/procedures/zones.html.haml' do
|
||||
describe 'administrateurs/procedures/zones' do
|
||||
let(:procedure) { create(:procedure) }
|
||||
let(:populate_zones_task) { Rake::Task['after_party:populate_zones'] }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RSpec.describe 'commencer/show.html.haml', type: :view do
|
||||
RSpec.describe 'commencer/show', type: :view do
|
||||
include Rails.application.routes.url_helpers
|
||||
|
||||
let(:stored_query_params) { false }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'experts/avis/index.html.haml', type: :view do
|
||||
describe 'experts/avis/index', type: :view do
|
||||
let(:expert) { create(:expert) }
|
||||
let(:claimant) { create(:instructeur) }
|
||||
let(:procedure) { create(:procedure) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'experts/avis/instruction.html.haml', type: :view do
|
||||
describe 'experts/avis/instruction', type: :view do
|
||||
let(:expert) { create(:expert) }
|
||||
let(:claimant) { create(:instructeur) }
|
||||
let(:procedure) { create(:procedure) }
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
describe 'instructeurs/dossiers/envoyer_dossier_block.html.haml', type: :view do
|
||||
describe 'instructeurs/dossiers/envoyer_dossier_block', type: :view do
|
||||
let(:dossier) { create(:dossier) }
|
||||
|
||||
subject do
|
||||
render(
|
||||
'instructeurs/dossiers/envoyer_dossier_block.html.haml',
|
||||
'instructeurs/dossiers/envoyer_dossier_block',
|
||||
dossier: dossier,
|
||||
potential_recipients: potential_recipients
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'instructeur/dossiers/expiration_banner.html.haml', type: :view do
|
||||
describe 'instructeur/dossiers/expiration_banner', type: :view do
|
||||
include DossierHelper
|
||||
let(:duree_conservation_dossiers_dans_ds) { 3 }
|
||||
let(:dossier) do
|
||||
|
@ -10,7 +10,7 @@ describe 'instructeur/dossiers/expiration_banner.html.haml', type: :view do
|
|||
end
|
||||
let(:i18n_key_state) { state }
|
||||
subject do
|
||||
render('instructeurs/dossiers/expiration_banner.html.haml',
|
||||
render('instructeurs/dossiers/expiration_banner',
|
||||
dossier: dossier,
|
||||
current_user: build(:user))
|
||||
end
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
describe 'instructeurs/dossiers/instruction_button.html.haml', type: :view do
|
||||
describe 'instructeurs/dossiers/instruction_button', type: :view do
|
||||
include DossierHelper
|
||||
|
||||
subject! do
|
||||
render('instructeurs/dossiers/instruction_button.html.haml', dossier: dossier)
|
||||
render('instructeurs/dossiers/instruction_button', dossier: dossier)
|
||||
end
|
||||
|
||||
matcher :have_dropdown_title do |expected_title|
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
describe 'instructeurs/dossiers/instruction_button_motivation.html.haml', type: :view do
|
||||
describe 'instructeurs/dossiers/instruction_button_motivation', type: :view do
|
||||
let(:dossier) { create(:dossier, :en_instruction) }
|
||||
|
||||
subject do
|
||||
render(
|
||||
'instructeurs/dossiers/instruction_button_motivation.html.haml',
|
||||
'instructeurs/dossiers/instruction_button_motivation',
|
||||
dossier: dossier,
|
||||
popup_title: 'Accepter le dossier',
|
||||
placeholder: 'Expliquez au demandeur pourquoi ce dossier est accepté (facultatif)',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'instructeurs/dossiers/print.html.haml', type: :view do
|
||||
describe 'instructeurs/dossiers/print', type: :view do
|
||||
before { view.extend DossierHelper }
|
||||
|
||||
context "with a dossier" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'instructeurs/dossiers/show.html.haml', type: :view do
|
||||
describe 'instructeurs/dossiers/show', type: :view do
|
||||
let(:current_instructeur) { create(:instructeur) }
|
||||
let(:dossier) { create(:dossier, :en_construction) }
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
describe 'instructeurs/procedures/_list.html.haml', type: :view do
|
||||
describe 'instructeurs/procedures/_list', type: :view do
|
||||
let(:procedure) { create(:procedure, id: 1, procedure_expires_when_termine_enabled: expiration_enabled) }
|
||||
|
||||
subject do
|
||||
render('instructeurs/procedures/list.html.haml',
|
||||
render('instructeurs/procedures/list',
|
||||
p: procedure,
|
||||
dossiers_count_per_procedure: 5,
|
||||
dossiers_a_suivre_count_per_procedure: 2,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'instructeurs/procedures/_synthese.html.haml', type: :view do
|
||||
describe 'instructeurs/procedures/_synthese', type: :view do
|
||||
let(:current_instructeur) { create(:instructeur) }
|
||||
let(:procedure) { create(:procedure) }
|
||||
let!(:dossier) { create(:dossier, procedure: procedure) }
|
||||
|
@ -7,7 +7,7 @@ describe 'instructeurs/procedures/_synthese.html.haml', type: :view do
|
|||
let(:procedure2) { create(:procedure) }
|
||||
|
||||
subject {
|
||||
render 'instructeurs/procedures/synthese.html.haml',
|
||||
render 'instructeurs/procedures/synthese',
|
||||
all_dossiers_counts: {
|
||||
'à suivre': 0,
|
||||
'suivis': 0,
|
||||
|
@ -27,7 +27,7 @@ describe 'instructeurs/procedures/_synthese.html.haml', type: :view do
|
|||
|
||||
context 'when instructeur has 1 procedure and 1 file, table is not shown' do
|
||||
subject {
|
||||
render 'instructeurs/procedures/synthese.html.haml',
|
||||
render 'instructeurs/procedures/synthese',
|
||||
all_dossiers_counts: {
|
||||
'à suivre': 0,
|
||||
'suivis': 0,
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
describe 'instructeurs/procedures/_tabs.html.haml', type: :view do
|
||||
describe 'instructeurs/procedures/_tabs', type: :view do
|
||||
let(:procedure) { create(:procedure, id: 1, procedure_expires_when_termine_enabled: expiration_enabled) }
|
||||
|
||||
before { allow(view).to receive(:current_instructeur).and_return(create(:instructeur)) }
|
||||
|
||||
subject do
|
||||
render('instructeurs/procedures/tabs.html.haml',
|
||||
render('instructeurs/procedures/tabs',
|
||||
procedure: procedure,
|
||||
statut: 'tous',
|
||||
a_suivre_count: 0,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'instructeur_mailer/send_notifications.html.haml', type: :view do
|
||||
describe 'instructeur_mailer/send_notifications', type: :view do
|
||||
let(:instructeur) { create(:instructeur) }
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'layouts/_header.html.haml', type: :view do
|
||||
describe 'layouts/_header', type: :view do
|
||||
let(:current_instructeur) { nil }
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'layouts/procedure_context.html.haml', type: :view do
|
||||
describe 'layouts/procedure_context', type: :view do
|
||||
let(:procedure) { create(:simple_procedure, :with_service) }
|
||||
let(:dossier) { create(:dossier, procedure: procedure) }
|
||||
|
||||
|
@ -9,7 +9,7 @@ describe 'layouts/procedure_context.html.haml', type: :view do
|
|||
end
|
||||
|
||||
subject do
|
||||
render html: 'Column content', layout: 'layouts/procedure_context.html.haml'
|
||||
render html: 'Column content', layout: 'layouts/procedure_context'
|
||||
end
|
||||
|
||||
context 'when a procedure is assigned' do
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
describe 'prefill_descriptions/types_de_champs.html.haml', type: :view do
|
||||
describe 'prefill_descriptions/types_de_champs', type: :view do
|
||||
let(:prefill_description) { PrefillDescription.new(create(:procedure)) }
|
||||
let!(:type_de_champ) { create(:type_de_champ_drop_down_list, procedure: prefill_description, drop_down_options: options) }
|
||||
|
||||
subject { render('prefill_descriptions/types_de_champs.html.haml', prefill_description: prefill_description) }
|
||||
subject { render('prefill_descriptions/types_de_champs', prefill_description: prefill_description) }
|
||||
|
||||
context 'when a type de champ has too many values' do
|
||||
let(:options) { (1..20).map(&:to_s) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'shared/_procedure_description.html.haml', type: :view do
|
||||
describe 'shared/_procedure_description', type: :view do
|
||||
let(:estimated_duration_visible) { true }
|
||||
let(:procedure) { create(:procedure, :published, :with_service, estimated_duration_visible:) }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RSpec.describe 'shared/archives/_table.html.haml', type: :view do
|
||||
RSpec.describe 'shared/archives/_table', type: :view do
|
||||
include Rails.application.routes.url_helpers
|
||||
|
||||
let(:procedure) { create(:procedure) }
|
||||
|
@ -10,7 +10,7 @@ RSpec.describe 'shared/archives/_table.html.haml', type: :view do
|
|||
allow(view).to receive(:create_archive_url).and_return("/archive/created/stubed")
|
||||
end
|
||||
|
||||
subject { render 'shared/archives/table.html.haml', count_dossiers_termines_by_month: { month_date => 5 }, archives: all_archives + [monthly_archive].compact, average_dossier_weight: average_dossier_weight, procedure: procedure }
|
||||
subject { render 'shared/archives/table', count_dossiers_termines_by_month: { month_date => 5 }, archives: all_archives + [monthly_archive].compact, average_dossier_weight: average_dossier_weight, procedure: procedure }
|
||||
|
||||
context "when archive is available" do
|
||||
let(:monthly_archive) { create(:archive, time_span_type: "monthly", month: month_date, job_status: :generated, file: Rack::Test::UploadedFile.new('spec/fixtures/files/RIB.pdf', 'application/pdf')) }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
describe 'shared/avis/_list.html.haml', type: :view do
|
||||
describe 'shared/avis/_list', type: :view do
|
||||
before { view.extend DossierHelper }
|
||||
|
||||
subject { render 'shared/avis/list.html.haml', avis: avis, avis_seen_at: seen_at, expert_or_instructeur: instructeur }
|
||||
subject { render 'shared/avis/list', avis: avis, avis_seen_at: seen_at, expert_or_instructeur: instructeur }
|
||||
|
||||
let(:instructeur) { create(:instructeur) }
|
||||
let(:instructeur2) { create(:instructeur) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'views/shared/champs/multiple_drop_down_list/_show.html.haml', type: :view do
|
||||
describe 'views/shared/champs/multiple_drop_down_list/_show', type: :view do
|
||||
let(:champ) { build(:champ_multiple_drop_down_list, value: ['abc', '2, 3, 4']) }
|
||||
|
||||
subject { render partial: 'shared/champs/multiple_drop_down_list/show', locals: { champ: champ } }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'shared/dossiers/champs.html.haml', type: :view do
|
||||
describe 'shared/dossiers/champs', type: :view do
|
||||
let(:instructeur) { create(:instructeur) }
|
||||
let(:demande_seen_at) { nil }
|
||||
|
||||
|
@ -8,7 +8,7 @@ describe 'shared/dossiers/champs.html.haml', type: :view do
|
|||
allow(view).to receive(:current_instructeur).and_return(instructeur)
|
||||
end
|
||||
|
||||
subject { render 'shared/dossiers/champs.html.haml', champs: champs, dossier: dossier, demande_seen_at: demande_seen_at, profile: nil }
|
||||
subject { render 'shared/dossiers/champs', champs: champs, dossier: dossier, demande_seen_at: demande_seen_at, profile: nil }
|
||||
|
||||
context "there are some champs" do
|
||||
let(:dossier) { create(:dossier) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'shared/dossiers/demande.html.haml', type: :view do
|
||||
describe 'shared/dossiers/demande', type: :view do
|
||||
let(:current_instructeur) { create(:instructeur) }
|
||||
let(:individual) { nil }
|
||||
let(:etablissement) { nil }
|
||||
|
@ -9,7 +9,7 @@ describe 'shared/dossiers/demande.html.haml', type: :view do
|
|||
sign_in(current_instructeur.user)
|
||||
end
|
||||
|
||||
subject { render 'shared/dossiers/demande.html.haml', dossier: dossier, demande_seen_at: nil, profile: 'usager' }
|
||||
subject { render 'shared/dossiers/demande', dossier: dossier, demande_seen_at: nil, profile: 'usager' }
|
||||
|
||||
context 'when dossier was created by an etablissement' do
|
||||
let(:etablissement) { create(:etablissement) }
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
describe 'shared/dossiers/edit.html.haml', type: :view do
|
||||
describe 'shared/dossiers/edit', type: :view do
|
||||
before do
|
||||
allow(controller).to receive(:current_user).and_return(dossier.user)
|
||||
allow(view).to receive(:administrateur_signed_in?).and_return(false)
|
||||
end
|
||||
|
||||
subject { render 'shared/dossiers/edit.html.haml', dossier: dossier, apercu: false }
|
||||
subject { render 'shared/dossiers/edit', dossier: dossier, apercu: false }
|
||||
|
||||
context 'when there are some champs' do
|
||||
let(:dossier) { create(:dossier) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'dossiers/show/header.html.haml', type: :view do
|
||||
describe 'dossiers/show/header', type: :view do
|
||||
let(:procedure) { create(:procedure, :discarded) }
|
||||
let(:dossier) { create(:dossier, state: "brouillon", procedure: procedure) }
|
||||
let(:user) { dossier.user }
|
||||
|
@ -7,7 +7,7 @@ describe 'dossiers/show/header.html.haml', type: :view do
|
|||
sign_in user
|
||||
end
|
||||
|
||||
subject! { render 'shared/dossiers/header.html.haml', dossier: dossier }
|
||||
subject! { render 'shared/dossiers/header', dossier: dossier }
|
||||
|
||||
context "when the procedure is discarded with a dossier en brouillon" do
|
||||
it 'affiche que la démarche est supprimée' do
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
describe 'shared/dossiers/identite_entreprise.html.haml', type: :view do
|
||||
before { render 'shared/dossiers/identite_entreprise.html.haml', etablissement: etablissement, profile: 'usager' }
|
||||
describe 'shared/dossiers/identite_entreprise', type: :view do
|
||||
before { render 'shared/dossiers/identite_entreprise', etablissement: etablissement, profile: 'usager' }
|
||||
|
||||
context "there is an association" do
|
||||
let(:etablissement) { create(:etablissement, :is_association) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/procedure_footer.html.haml', type: :view do
|
||||
describe 'users/procedure_footer', type: :view do
|
||||
let(:service) { create(:service) }
|
||||
let(:dossier) {
|
||||
dossier = create(:dossier)
|
||||
|
@ -6,7 +6,7 @@ describe 'users/procedure_footer.html.haml', type: :view do
|
|||
return dossier
|
||||
}
|
||||
|
||||
subject { render 'users/procedure_footer.html.haml', procedure: dossier.procedure, dossier: dossier }
|
||||
subject { render 'users/procedure_footer', procedure: dossier.procedure, dossier: dossier }
|
||||
|
||||
it "affiche les informations de contact" do
|
||||
expect(subject).to have_text(service.nom)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
describe 'users/dossiers/dossier_actions.html.haml', type: :view do
|
||||
describe 'users/dossiers/dossier_actions', type: :view do
|
||||
let(:procedure) { create(:procedure, :published) }
|
||||
let(:dossier) { create(:dossier, :en_construction, procedure: procedure) }
|
||||
let(:user) { dossier.user }
|
||||
|
||||
subject { render 'users/dossiers/dossier_actions.html.haml', dossier: dossier, current_user: user }
|
||||
subject { render 'users/dossiers/dossier_actions', dossier: dossier, current_user: user }
|
||||
|
||||
it { is_expected.to have_link('Commencer un autre dossier', href: commencer_url(path: procedure.path)) }
|
||||
it { is_expected.to have_link('Supprimer le dossier', href: dossier_path(dossier)) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/expiration_banner.html.haml', type: :view do
|
||||
describe 'users/dossiers/expiration_banner', type: :view do
|
||||
include DossierHelper
|
||||
let(:duree_conservation_dossiers_dans_ds) { 3 }
|
||||
let(:dossier) do
|
||||
|
@ -11,7 +11,7 @@ describe 'users/dossiers/expiration_banner.html.haml', type: :view do
|
|||
end
|
||||
let(:i18n_key_state) { state }
|
||||
subject do
|
||||
render('users/dossiers/expiration_banner.html.haml',
|
||||
render('users/dossiers/expiration_banner',
|
||||
dossier: dossier,
|
||||
current_user: build(:user))
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/brouillon.html.haml', type: :view do
|
||||
describe 'users/dossiers/brouillon', type: :view do
|
||||
let(:procedure) { create(:procedure, :with_type_de_champ, :with_notice, :with_service) }
|
||||
let(:dossier) { create(:dossier, state: Dossier.states.fetch(:brouillon), procedure: procedure) }
|
||||
let(:footer) { view.content_for(:footer) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/demande.html.haml', type: :view do
|
||||
describe 'users/dossiers/demande', type: :view do
|
||||
let(:procedure) { create(:procedure, :published, :with_type_de_champ, :with_type_de_champ_private) }
|
||||
let(:dossier) { create(:dossier, :en_construction, :with_entreprise, procedure: procedure) }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/etablissement.html.haml', type: :view do
|
||||
describe 'users/dossiers/etablissement', type: :view do
|
||||
let(:etablissement) { create(:etablissement, :with_exercices, siret: "12345678900001") }
|
||||
let(:dossier) { create(:dossier, etablissement: etablissement) }
|
||||
let(:footer) { view.content_for(:footer) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/identite.html.haml', type: :view do
|
||||
describe 'users/dossiers/identite', type: :view do
|
||||
let(:procedure) { create(:simple_procedure, :for_individual) }
|
||||
let(:dossier) { create(:dossier, :with_service, state: Dossier.states.fetch(:brouillon), procedure: procedure) }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/index.html.haml', type: :view do
|
||||
describe 'users/dossiers/index', type: :view do
|
||||
let(:user) { create(:user) }
|
||||
let(:dossier_brouillon) { create(:dossier, state: Dossier.states.fetch(:brouillon), user: user) }
|
||||
let(:dossier_en_construction) { create(:dossier, state: Dossier.states.fetch(:en_construction), user: user) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/show.html.haml', type: :view do
|
||||
describe 'users/dossiers/show', type: :view do
|
||||
let(:dossier) { create(:dossier, :en_construction) }
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/show/header.html.haml', type: :view do
|
||||
describe 'users/dossiers/show/header', type: :view do
|
||||
let(:dossier) { create(:dossier, :en_construction, procedure: create(:procedure)) }
|
||||
let(:user) { dossier.user }
|
||||
|
||||
|
@ -6,7 +6,7 @@ describe 'users/dossiers/show/header.html.haml', type: :view do
|
|||
sign_in user
|
||||
end
|
||||
|
||||
subject! { render 'users/dossiers/show/header.html.haml', dossier: dossier }
|
||||
subject! { render 'users/dossiers/show/header', dossier: dossier }
|
||||
|
||||
it 'affiche les informations du dossier' do
|
||||
expect(rendered).to have_text(dossier.procedure.libelle)
|
||||
|
@ -36,7 +36,7 @@ describe 'users/dossiers/show/header.html.haml', type: :view do
|
|||
let(:dossier) { create(:dossier, :en_construction, procedure: procedure) }
|
||||
|
||||
before do
|
||||
render 'users/dossiers/show/header.html.haml', dossier: dossier
|
||||
render 'users/dossiers/show/header', dossier: dossier
|
||||
end
|
||||
|
||||
it 'affiche que la démarche est supprimée' do
|
||||
|
@ -59,7 +59,7 @@ describe 'users/dossiers/show/header.html.haml', type: :view do
|
|||
let(:dossier) { create(:dossier, :en_construction, procedure: procedure) }
|
||||
|
||||
before do
|
||||
render 'users/dossiers/show/header.html.haml', dossier: dossier
|
||||
render 'users/dossiers/show/header', dossier: dossier
|
||||
end
|
||||
|
||||
it 'affiche que la démarche est supprimée' do
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
describe 'users/dossiers/show/_status_overview.html.haml', type: :view do
|
||||
describe 'users/dossiers/show/_status_overview', type: :view do
|
||||
before { allow(dossier.procedure).to receive(:usual_traitement_time_for_recent_dossiers).and_return(1.day) }
|
||||
|
||||
subject! { render 'users/dossiers/show/status_overview.html.haml', dossier: dossier }
|
||||
subject! { render 'users/dossiers/show/status_overview', dossier: dossier }
|
||||
|
||||
matcher :have_timeline_item do |selector|
|
||||
match do |rendered|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/dossiers/siret.html.haml', type: :view do
|
||||
describe 'users/dossiers/siret', type: :view do
|
||||
let(:dossier) { create(:dossier) }
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/sessions/new.html.haml', type: :view do
|
||||
describe 'users/sessions/new', type: :view do
|
||||
let(:dossier) { create :dossier }
|
||||
|
||||
before(:each) do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe 'users/statistiques/show.html.haml', type: :view do
|
||||
describe 'users/statistiques/show', type: :view do
|
||||
let(:procedure) { create(:procedure) }
|
||||
|
||||
before do
|
||||
|
|
Loading…
Reference in a new issue