cefixup publiee

This commit is contained in:
gregoirenovel 2017-07-13 16:22:59 +02:00
parent 9a7d5d1833
commit 25800305ad
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 }