2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-08-29 19:08:27 +02:00
|
|
|
describe Gestionnaires::GestionnaireController, type: :controller do
|
|
|
|
describe 'before actions: authenticate_gestionnaire!' do
|
|
|
|
it 'is present' do
|
|
|
|
before_actions = Gestionnaires::GestionnaireController
|
|
|
|
._process_action_callbacks
|
|
|
|
.filter { |process_action_callbacks| process_action_callbacks.kind == :before }
|
|
|
|
.map(&:filter)
|
|
|
|
|
|
|
|
expect(before_actions).to include(:authenticate_gestionnaire!)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|