Skip to content

Commit 343a5cc

Browse files
committed
Fix a false positive for RSpec/ExampleWithoutDescription when specify with multi-line block and missing description
This PR fixes a false positive for `RSpec/ExampleWithoutDescription` when `specify` with multi-line block and missing description. This is because `specify` is recommended when there is no description. refs: https://rspec.rubystyle.guide/#it-and-specify ```ruby specify do # ... end ```
1 parent b1f73c0 commit 343a5cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Add new `RSpec/RepeatedSubjectCall` cop. ([@drcapulet])
1717
- Add configuration option `ResponseMethods` to `RSpec/Rails/HaveHttpStatus`. ([@ydah])
1818
- Fix a false negative for `RSpec/DescribedClass` when class with constant. ([@ydah])
19+
- Fix a false positive for `RSpec/ExampleWithoutDescription` when `specify` with multi-line block and missing description. ([@ydah])
1920

2021
## 2.26.1 (2024-01-05)
2122

0 commit comments

Comments
 (0)