Organisation -> Organisme

This commit is contained in:
gregoirenovel 2017-04-26 15:11:50 +02:00
parent d3a84eb20a
commit 4303dcef2c
5 changed files with 7 additions and 7 deletions

View file

@ -48,7 +48,7 @@ class PreferenceListDossier < ActiveRecord::Base
{ {
libelle: create_column('Libellé procédure', table, 'libelle', 'libelle', 4), libelle: create_column('Libellé procédure', table, 'libelle', 'libelle', 4),
organisation: create_column('Organisation', table, 'organisation', 'organisation', 3), organisation: create_column('Organisme', table, 'organisation', 'organisation', 3),
direction: create_column('Direction', table, 'direction', 'direction', 3) direction: create_column('Direction', table, 'direction', 'direction', 3)
} }
end end

View file

@ -2,7 +2,7 @@
.alert.alert-info .alert.alert-info
Cette procédure est publiée, certains éléments de la description ne sont plus modifiables Cette procédure est publiée, certains éléments de la description ne sont plus modifiables
- { libelle: 'Libellé*', description: 'Description*', organisation: 'Organisation', direction: 'Direction', lien_site_web: 'Lien site internet', lien_notice: 'Lien notice' }.each do |key, value| - { libelle: 'Libellé*', description: 'Description*', organisation: 'Organisme', direction: 'Direction', lien_site_web: 'Lien site internet', lien_notice: 'Lien notice' }.each do |key, value|
.form-group .form-group
%h4 %h4
= value = value

View file

@ -7,7 +7,7 @@
%th= smart_listing.sortable 'ID', 'id' %th= smart_listing.sortable 'ID', 'id'
%th= smart_listing.sortable 'Titre', 'libelle' %th= smart_listing.sortable 'Titre', 'libelle'
%th Description %th Description
%th= smart_listing.sortable 'Organisation', 'organisation' %th= smart_listing.sortable 'Organisme', 'organisation'
- smart_listing.collection.each do |procedure| - smart_listing.collection.each do |procedure|
- procedure = procedure.decorate - procedure = procedure.decorate

View file

@ -810,14 +810,14 @@ describe Dossier do
end end
describe "#text_summary" do describe "#text_summary" do
let(:procedure) { create(:procedure, libelle: "Procédure", organisation: "Organisation") } let(:procedure) { create(:procedure, libelle: "Procédure", organisation: "Organisme") }
context 'when the dossier has been initiated' do context 'when the dossier has been initiated' do
let(:dossier) { create :dossier, procedure: procedure, state: 'initiated', initiated_at: "31/12/2010".to_date } let(:dossier) { create :dossier, procedure: procedure, state: 'initiated', initiated_at: "31/12/2010".to_date }
subject { dossier.text_summary } subject { dossier.text_summary }
it { is_expected.to eq("Dossier déposé le 31/12/2010 sur la procédure Procédure gérée par l'organisme Organisation") } it { is_expected.to eq("Dossier déposé le 31/12/2010 sur la procédure Procédure gérée par l'organisme Organisme") }
end end
context 'when the dossier has not been initiated' do context 'when the dossier has not been initiated' do
@ -825,7 +825,7 @@ describe Dossier do
subject { dossier.text_summary } subject { dossier.text_summary }
it { is_expected.to eq("Dossier en brouillon répondant à la procédure Procédure gérée par l'organisme Organisation") } it { is_expected.to eq("Dossier en brouillon répondant à la procédure Procédure gérée par l'organisme Organisme") }
end end
end end

View file

@ -92,7 +92,7 @@ describe PreferenceListDossier do
describe 'organisation' do describe 'organisation' do
subject { super()[:organisation] } subject { super()[:organisation] }
it { expect(subject[:libelle]).to eq 'Organisation' } it { expect(subject[:libelle]).to eq 'Organisme' }
it { expect(subject[:table]).to eq 'procedure' } it { expect(subject[:table]).to eq 'procedure' }
it { expect(subject[:attr]).to eq 'organisation' } it { expect(subject[:attr]).to eq 'organisation' }
it { expect(subject[:attr_decorate]).to eq 'organisation' } it { expect(subject[:attr_decorate]).to eq 'organisation' }