[fix #504] Dossier: draft -> brouillon
This commit is contained in:
parent
56545933a9
commit
72bae2c374
34 changed files with 93 additions and 89 deletions
|
@ -345,7 +345,7 @@ describe DossiersListGestionnaireService do
|
|||
|
||||
describe 'state filter methods' do
|
||||
let!(:procedure) { create :procedure }
|
||||
let!(:dossier) { create(:dossier, procedure: procedure, state: 'draft') }
|
||||
let!(:dossier) { create(:dossier, procedure: procedure, state: 'brouillon') }
|
||||
let!(:dossier2) { create(:dossier, procedure: procedure, state: 'en_construction') } #nouveaux
|
||||
let!(:dossier3) { create(:dossier, procedure: procedure, state: 'en_construction') } #nouveaux
|
||||
let!(:dossier6) { create(:dossier, procedure: procedure, state: 'received') } #a_instruire
|
||||
|
|
|
@ -13,8 +13,8 @@ describe UserRoutesAuthorizationService do
|
|||
describe 'Users::DossiersController' do
|
||||
let(:controller) { Users::DossiersController }
|
||||
|
||||
describe 'draft' do
|
||||
let(:state) { 'draft' }
|
||||
describe 'brouillon' do
|
||||
let(:state) { 'brouillon' }
|
||||
it { is_expected.to be_truthy }
|
||||
end
|
||||
|
||||
|
@ -33,8 +33,8 @@ describe UserRoutesAuthorizationService do
|
|||
let(:controller) { Users::CarteController }
|
||||
|
||||
context 'when use_api_carto is false' do
|
||||
describe 'draft' do
|
||||
let(:state) { 'draft' }
|
||||
describe 'brouillon' do
|
||||
let(:state) { 'brouillon' }
|
||||
it { is_expected.to be_falsey }
|
||||
end
|
||||
|
||||
|
@ -52,8 +52,8 @@ describe UserRoutesAuthorizationService do
|
|||
context 'when use_api_carto is true' do
|
||||
let(:use_api_carto) { true }
|
||||
|
||||
describe 'draft' do
|
||||
let(:state) { 'draft' }
|
||||
describe 'brouillon' do
|
||||
let(:state) { 'brouillon' }
|
||||
it { is_expected.to be_truthy }
|
||||
end
|
||||
|
||||
|
@ -72,8 +72,8 @@ describe UserRoutesAuthorizationService do
|
|||
describe 'Users::DescriptionController' do
|
||||
let(:controller) { Users::DescriptionController }
|
||||
|
||||
describe 'draft' do
|
||||
let(:state) { 'draft' }
|
||||
describe 'brouillon' do
|
||||
let(:state) { 'brouillon' }
|
||||
it { is_expected.to be_truthy }
|
||||
end
|
||||
|
||||
|
@ -91,8 +91,8 @@ describe UserRoutesAuthorizationService do
|
|||
describe 'recapitulatif' do
|
||||
let(:controller) { Users::RecapitulatifController }
|
||||
|
||||
describe 'draft' do
|
||||
let(:state) { 'draft' }
|
||||
describe 'brouillon' do
|
||||
let(:state) { 'brouillon' }
|
||||
it { is_expected.to be_falsey }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue