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

@ -5,7 +5,7 @@ describe Instructeurs::ProceduresController, type: :controller do
it "is present" do
before_actions = Instructeurs::ProceduresController
._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!)
@ -46,7 +46,7 @@ describe Instructeurs::ProceduresController, type: :controller do
it "is present" do
before_actions = Instructeurs::ProceduresController
._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(:redirect_to_avis_if_needed)