File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Master (Unreleased)
4
4
5
+ - Fix false positive in ` RSpec/Pending ` , where it would mark the default block ` it ` as an offense. ([ @bquorning ] )
6
+
5
7
## 3.5.0 (2025-02-16)
6
8
7
9
- Don't let ` RSpec/PredicateMatcher ` replace ` respond_to? ` with two arguments with the RSpec ` respond_to ` matcher. ([ @bquorning ] )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class Pending < Base
47
47
48
48
# @!method skippable_example?(node)
49
49
def_node_matcher :skippable_example? , <<~PATTERN
50
- (send nil? #Examples.regular ...)
50
+ (send nil? #Examples.regular _ ...)
51
51
PATTERN
52
52
53
53
# @!method pending_block?(node)
Original file line number Diff line number Diff line change 225
225
subject { Project.pending }
226
226
RUBY
227
227
end
228
+
229
+ it 'ignores default block parameter' do
230
+ expect_no_offenses ( <<~RUBY )
231
+ expect(
232
+ foo.map { it.reverse }
233
+ ).to include(:bar)
234
+ RUBY
235
+ end
228
236
end
You can’t perform that action at this time.
0 commit comments