File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class AroundBlock < Base
3131 'or `%<arg>s.run`.'
3232
3333 def_node_matcher :hook , <<-PATTERN
34- (block { (send nil? :around) (send nil? :around sym)} (args $...) ...)
34+ (block (send nil? :around sym ?) (args $...) ...)
3535 PATTERN
3636
3737 def_node_search :find_arg_usage , <<-PATTERN
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ class ImplicitBlockExpectation < Base
2222 def_node_matcher :lambda? , <<-PATTERN
2323 {
2424 (send (const nil? :Proc) :new)
25- (send nil? :proc)
26- (send nil? :lambda)
25+ (send nil? {:proc :lambda})
2726 }
2827 PATTERN
2928
Original file line number Diff line number Diff line change @@ -6,11 +6,7 @@ module RSpec
66 class Hook < Concept
77 def_node_matcher :extract_metadata , <<~PATTERN
88 (block
9- {
10- (send _ _ #valid_scope? $...)
11- (send _ _ $...)
12- }
13- ...
9+ (send _ _ #valid_scope? ? $...) ...
1410 )
1511 PATTERN
1612
You can’t perform that action at this time.
0 commit comments