Add Style/CollectionMethods to rubocop
This commit is contained in:
parent
3f970eee74
commit
3b8d3b7967
37 changed files with 67 additions and 60 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue