demarches-normaliennes/spec/controllers/new_administrateur/administrateur_controller_spec.rb

13 lines
462 B
Ruby
Raw Normal View History

2018-04-13 16:56:00 +02:00
describe NewAdministrateur::AdministrateurController, type: :controller do
describe 'before actions: authenticate_administrateur!' do
it 'is present' do
before_actions = NewAdministrateur::AdministrateurController
._process_action_callbacks
2019-09-12 11:26:22 +02:00
.filter { |process_action_callbacks| process_action_callbacks.kind == :before }
2018-04-13 16:56:00 +02:00
.map(&:filter)
expect(before_actions).to include(:authenticate_administrateur!)
end
end
end