File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 22
33## Master (Unreleased)
44
5+ - Fix false positive in ` RSpec/Pending ` , where it would mark the default block ` it ` as an offense. ([ @bquorning ] )
6+
57## 3.5.0 (2025-02-16)
68
79- 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
4747
4848 # @!method skippable_example?(node)
4949 def_node_matcher :skippable_example? , <<~PATTERN
50- (send nil? #Examples.regular ...)
50+ (send nil? #Examples.regular _ ...)
5151 PATTERN
5252
5353 # @!method pending_block?(node)
Original file line number Diff line number Diff line change 225225 subject { Project.pending }
226226 RUBY
227227 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
228236end
You can’t perform that action at this time.
0 commit comments