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