demarches-normaliennes/spec/controllers/manager/procedures_controller_spec.rb

15 lines
368 B
Ruby
Raw Normal View History

describe Manager::ProceduresController, type: :controller do
describe '#whitelist' do
let(:administration) { create :administration }
let!(:procedure) { create(:procedure) }
before do
sign_in administration
2018-01-10 17:42:21 +01:00
post :whitelist, id: procedure.id
procedure.reload
end
it { expect(procedure.whitelisted_at).not_to be_nil }
end
end