fix: remove hardcoded .html.haml from render calls since it no longer works

This commit is contained in:
Nicolas Cavigneaux 2023-03-06 15:51:08 +01:00 committed by Colin Darie
parent 42689e34ba
commit e483bfbc76
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
45 changed files with 69 additions and 69 deletions

View file

@ -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
)

View file

@ -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

View file

@ -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|

View file

@ -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)',

View file

@ -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

View file

@ -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) }