New Routes: add new_gestionnaire/gestionnaire_controller
This commit is contained in:
parent
1e661fa686
commit
3eec07ac08
2 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
module NewGestionnaire
|
||||||
|
class GestionnaireController < ApplicationController
|
||||||
|
before_action :authenticate_gestionnaire!
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,15 @@
|
||||||
|
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
|
||||||
|
.find_all{|process_action_callbacks| process_action_callbacks.kind == :before}
|
||||||
|
.map(&:filter)
|
||||||
|
|
||||||
|
expect(before_actions).to include(:authenticate_gestionnaire!)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue