add new column to spreadsheets

This commit is contained in:
Lisa Durand 2023-03-10 14:38:37 +01:00
parent 38c84115e6
commit 3b3d5182bf
2 changed files with 6 additions and 2 deletions

View file

@ -69,8 +69,10 @@ class Avis < ApplicationRecord
def spreadsheet_columns
[
['Dossier ID', dossier_id.to_s],
['Question / Introduction', :introduction],
['Introduction', :introduction],
['Réponse', :answer],
['Question', :question_label],
['Réponse oui/non', :question_answer],
['Créé le', :created_at],
['Répondu le', :updated_at],
['Instructeur', claimant&.email],

View file

@ -364,8 +364,10 @@ describe ProcedureExportService do
it 'should have headers' do
expect(avis_sheet.headers).to eq([
"Dossier ID",
"Question / Introduction",
"Introduction",
"Réponse",
"Question",
"Réponse oui/non",
"Créé le",
"Répondu le",
"Instructeur",