demarches-normaliennes/spec/controllers/users/user_controller_spec.rb

15 lines
436 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2019-03-25 10:53:45 +01:00
describe Users::UserController, type: :controller do
describe 'before actions: authenticate_instructeur!' do
it 'is present' do
2019-03-25 10:53:45 +01:00
before_actions = Users::UserController
._process_action_callbacks
2019-09-12 11:26:22 +02:00
.filter { |process_action_callbacks| process_action_callbacks.kind == :before }
.map(&:filter)
expect(before_actions).to include(:authenticate_user!)
end
end
end