Add Style/CollectionMethods to rubocop

This commit is contained in:
Paul Chavard 2019-09-12 11:26:22 +02:00
parent 3f970eee74
commit 3b8d3b7967
37 changed files with 67 additions and 60 deletions

View file

@ -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!)

View file

@ -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!)