2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
describe Instructeurs::InstructeurController, type: :controller do
|
|
|
|
describe 'before actions: authenticate_instructeur!' do
|
2017-06-29 15:29:48 +02:00
|
|
|
it 'is present' do
|
2019-08-06 11:02:54 +02:00
|
|
|
before_actions = Instructeurs::InstructeurController
|
2017-06-29 15:29:48 +02:00
|
|
|
._process_action_callbacks
|
2019-09-12 11:26:22 +02:00
|
|
|
.filter { |process_action_callbacks| process_action_callbacks.kind == :before }
|
2017-06-29 15:29:48 +02:00
|
|
|
.map(&:filter)
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
expect(before_actions).to include(:authenticate_instructeur!)
|
2017-06-29 15:29:48 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|