Add Style/CollectionMethods to rubocop
This commit is contained in:
parent
3f970eee74
commit
3b8d3b7967
37 changed files with 67 additions and 60 deletions
|
@ -7,7 +7,7 @@ describe Users::DossiersController, type: :controller do
|
|||
it 'are present' do
|
||||
before_actions = Users::DossiersController
|
||||
._process_action_callbacks
|
||||
.find_all { |process_action_callbacks| process_action_callbacks.kind == :before }
|
||||
.filter { |process_action_callbacks| process_action_callbacks.kind == :before }
|
||||
.map(&:filter)
|
||||
|
||||
expect(before_actions).to include(:ensure_ownership!, :ensure_ownership_or_invitation!, :forbid_invite_submission!)
|
||||
|
|
|
@ -5,7 +5,7 @@ describe Users::UserController, type: :controller do
|
|||
it 'is present' do
|
||||
before_actions = Users::UserController
|
||||
._process_action_callbacks
|
||||
.find_all { |process_action_callbacks| process_action_callbacks.kind == :before }
|
||||
.filter { |process_action_callbacks| process_action_callbacks.kind == :before }
|
||||
.map(&:filter)
|
||||
|
||||
expect(before_actions).to include(:authenticate_user!)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue