2017-06-29 15:29:48 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe NewGestionnaire::GestionnaireController, type: :controller do
|
|
|
|
describe 'before actions: authenticate_gestionnaire!' do
|
|
|
|
it 'is present' do
|
|
|
|
before_actions = NewGestionnaire::GestionnaireController
|
|
|
|
._process_action_callbacks
|
2018-01-15 21:54:40 +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
|