add new column to spreadsheets
This commit is contained in:
parent
38c84115e6
commit
3b3d5182bf
2 changed files with 6 additions and 2 deletions
|
@ -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],
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue