demarches-normaliennes/spec/controllers/admin/previsualisations_controller_spec.rb

16 lines
379 B
Ruby
Raw Normal View History

require 'spec_helper'
describe Admin::PrevisualisationsController, type: :controller do
let(:admin) { create(:administrateur) }
let(:procedure) { create :procedure, administrateur: admin }
before do
sign_in admin
end
describe 'GET #show' do
subject { get :show, params: { procedure_id: procedure.id } }
it { expect(subject.status).to eq(200) }
end
2017-04-04 15:27:04 +02:00
end