demarches-normaliennes/spec/controllers/gestionnaires/gestionnaire_controller_spec.rb
2019-03-26 10:48:59 +01:00

14 lines
471 B
Ruby

require 'spec_helper'
describe Gestionnaires::GestionnaireController, type: :controller do
describe 'before actions: authenticate_gestionnaire!' do
it 'is present' do
before_actions = Gestionnaires::GestionnaireController
._process_action_callbacks
.find_all { |process_action_callbacks| process_action_callbacks.kind == :before }
.map(&:filter)
expect(before_actions).to include(:authenticate_gestionnaire!)
end
end
end