2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-25 10:53:45 +01:00
|
|
|
describe Users::UserController, type: :controller do
|
2019-08-06 11:02:54 +02:00
|
|
|
describe 'before actions: authenticate_instructeur!' do
|
2017-06-29 14:11:48 +02:00
|
|
|
it 'is present' do
|
2019-03-25 10:53:45 +01:00
|
|
|
before_actions = Users::UserController
|
2017-06-29 14:11: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 14:11:48 +02:00
|
|
|
.map(&:filter)
|
|
|
|
|
|
|
|
expect(before_actions).to include(:authenticate_user!)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|