Merge pull request #6192 from betagouv/fix_dossier_state_spreadsheet_export

corrige une traduction manquante pour l'état d'un dossier dans les exports csv/excel ...
This commit is contained in:
LeSim 2021-05-10 11:28:55 +02:00 committed by GitHub
commit 93104d4782
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -817,7 +817,7 @@ class Dossier < ApplicationRecord
columns += [
['Archivé', :archived],
['État du dossier', I18n.t(state, scope: [:activerecord, :attributes, :dossier, :state])],
['État du dossier', Dossier.human_attribute_name("state.#{state}")],
['Dernière mise à jour le', :updated_at],
['Déposé le', :en_construction_at],
['Passé en instruction le', :en_instruction_at],

View file

@ -1430,4 +1430,10 @@ describe Dossier do
expect(dossier.destroy).to be_truthy
end
end
describe "#spreadsheet_columns" do
let(:dossier) { create(:dossier) }
it { expect(dossier.spreadsheet_columns(types_de_champ: [], types_de_champ_private: [])).to include(["État du dossier", "Brouillon"]) }
end
end