2017-06-29 14:11:48 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2019-03-25 10:53:45 +01:00
|
|
|
describe Users::UserController, type: :controller do
|
2017-06-29 14:11:48 +02:00
|
|
|
describe 'before actions: authenticate_gestionnaire!' do
|
|
|
|
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
|
2018-12-24 17:28:20 +01:00
|
|
|
.find_all { |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
|