2017-06-29 15:29:48 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2019-03-25 16:54:46 +01:00
|
|
|
describe Gestionnaires::GestionnaireController, type: :controller do
|
2017-06-29 15:29:48 +02:00
|
|
|
describe 'before actions: authenticate_gestionnaire!' do
|
|
|
|
it 'is present' do
|
2019-03-25 16:54:46 +01:00
|
|
|
before_actions = Gestionnaires::GestionnaireController
|
2017-06-29 15:29: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 15:29:48 +02:00
|
|
|
.map(&:filter)
|
|
|
|
|
|
|
|
expect(before_actions).to include(:authenticate_gestionnaire!)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|