From 25800305adbb98defd7fca652ac2b312699ab5f3 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Thu, 13 Jul 2017 16:22:59 +0200 Subject: [PATCH] cefixup publiee --- spec/controllers/admin/procedures_controller_spec.rb | 2 +- spec/controllers/users/description_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/admin/procedures_controller_spec.rb b/spec/controllers/admin/procedures_controller_spec.rb index 8f0c9f69e..9846ead56 100644 --- a/spec/controllers/admin/procedures_controller_spec.rb +++ b/spec/controllers/admin/procedures_controller_spec.rb @@ -367,7 +367,7 @@ describe Admin::ProceduresController, type: :controller do end describe 'PUT #archive' do - let(:procedure) { create(:procedure, administrateur: admin) } + let(:procedure) { create(:procedure, :published, administrateur: admin) } context 'when admin is the owner of the procedure' do before do diff --git a/spec/controllers/users/description_controller_spec.rb b/spec/controllers/users/description_controller_spec.rb index 957871e48..12f0dfa6f 100644 --- a/spec/controllers/users/description_controller_spec.rb +++ b/spec/controllers/users/description_controller_spec.rb @@ -8,7 +8,7 @@ describe Users::DescriptionController, type: :controller, vcr: {cassette_name: ' let(:archived_at) { nil } let(:state) { 'initiated' } - let(:procedure) { create(:procedure, :with_two_type_de_piece_justificative, :with_type_de_champ, :with_datetime, cerfa_flag: true, archived_at: archived_at) } + let(:procedure) { create(:procedure, :with_two_type_de_piece_justificative, :with_type_de_champ, :with_datetime, cerfa_flag: true, published_at: Time.now, archived_at: archived_at) } let(:dossier) { create(:dossier, procedure: procedure, user: owner_user, state: state) } let(:dossier_id) { dossier.id }