2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-11-25 16:26:55 +01:00
|
|
|
describe Administrateurs::AdministrateurController, type: :controller do
|
2018-04-13 16:56:00 +02:00
|
|
|
describe 'before actions: authenticate_administrateur!' do
|
|
|
|
it 'is present' do
|
2021-11-25 16:26:55 +01:00
|
|
|
before_actions = Administrateurs::AdministrateurController
|
2018-04-13 16:56:00 +02:00
|
|
|
._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
|