2016-06-06 17:40:32 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2016-11-15 05:19:30 +01:00
|
|
|
describe Admin::PrevisualisationsController, type: :controller do
|
2016-06-06 17:40:32 +02:00
|
|
|
let(:admin) { create(:administrateur) }
|
|
|
|
let(:procedure) { create :procedure, administrateur: admin }
|
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in admin
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'GET #show' do
|
2018-01-16 13:34:24 +01:00
|
|
|
subject { get :show, params: { procedure_id: procedure.id } }
|
2016-11-15 05:19:30 +01:00
|
|
|
it { expect(subject.status).to eq(200) }
|
2016-06-06 17:40:32 +02:00
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|