You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document aggregate_failures behavior in MultipleExpectations cop
Rspec/MultipleExpectations supports :aggregate_failures by simply ignoring
any blocks enclosed in them. The only issue is that they don't really
appear in any of the docs so the behavior is mostly hidden. This update
merely adds two inline examples to RSpec/MultipleExpectations to allow
for greater discoverability.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
* Add new `RSpec/Capybara/SpecificMatcher` cop. ([@ydah][])
8
8
* Fixed false offense detection in `FactoryBot/CreateList` when a n.times block is including method calls in the factory create arguments. ([@ngouy][])
9
9
* Fix error in `RSpec/RSpec/FactoryBot/CreateList` cop for empty block. ([@tejasbubane][])
10
+
* Update `RSpec/MultipleExpectations` cop documentation with examples of aggregate_failures use. ([@edgibbs][])
10
11
11
12
## 2.11.1 (2022-05-18)
12
13
@@ -702,3 +703,4 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
0 commit comments