File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1- require :
1+ plugins :
22 - rubocop-rspec
33 - rubocop-performance
44
55AllCops :
66 DisabledByDefault : false
7- TargetRubyVersion : 3.0
7+ TargetRubyVersion : 3.1
88 NewCops : enable
99 SuggestExtensions : false
1010 Exclude :
@@ -152,7 +152,10 @@ RSpec/DescribedClass:
152152RSpec/DescribeClass :
153153 Enabled : false
154154
155- RSpec/FilePath :
155+ RSpec/SpecFilePathFormat :
156+ Enabled : false
157+
158+ RSpec/SpecFilePathSuffix :
156159 Enabled : false
157160
158161RSpec/MultipleExpectations :
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ def expression
1515 :union
1616 end
1717
18- def each ( &block )
19- arguments . each ( &block )
18+ def each ( &)
19+ arguments . each ( &)
2020 end
2121
2222 def method_missing ( *args ) # rubocop:disable Style/MissingRespondToMissing
Original file line number Diff line number Diff line change 2020 @expr1 = XPath . generate { |x | x . descendant ( :p ) }
2121 @expr2 = XPath . generate { |x | x . descendant ( :div ) }
2222 @collection = XPath ::Union . new ( @expr1 , @expr2 )
23- exprs = [ ]
24- @collection . each { |expr | exprs << expr }
23+ exprs = @collection . map { |expr | expr }
2524 expect ( exprs ) . to eq [ @expr1 , @expr2 ]
2625 end
2726 end
You can’t perform that action at this time.
0 commit comments