demarches-normaliennes/spec/controllers/administrateurs/administrateur_controller_spec.rb
2021-11-30 08:49:38 +01:00

12 lines
458 B
Ruby

describe Administrateurs::AdministrateurController, type: :controller do
describe 'before actions: authenticate_administrateur!' do
it 'is present' do
before_actions = Administrateurs::AdministrateurController
._process_action_callbacks
.filter { |process_action_callbacks| process_action_callbacks.kind == :before }
.map(&:filter)
expect(before_actions).to include(:authenticate_administrateur!)
end
end
end