File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -782,7 +782,7 @@ RSpec/ReceiveCounts:
782
782
Reference : https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReceiveCounts
783
783
784
784
RSpec/ReceiveMessages :
785
- Description : Checks for multiple messages stubbed on the same object.
785
+ Description : Prefer `receive_messages` over multiple `receive`s on the same object.
786
786
Enabled : true
787
787
SafeAutoCorrect : false
788
788
VersionAdded : ' 2.23'
Original file line number Diff line number Diff line change @@ -4887,7 +4887,7 @@ expect(foo).to receive(:bar).at_most(:twice).times
4887
4887
| -
4888
4888
|===
4889
4889
4890
- Checks for multiple messages stubbed on the same object.
4890
+ Prefer `receive_messages` over multiple `receive`s on the same object.
4891
4891
4892
4892
[#safety-rspecreceivemessages]
4893
4893
=== Safety
Original file line number Diff line number Diff line change 3
3
module RuboCop
4
4
module Cop
5
5
module RSpec
6
- # Checks for multiple messages stubbed on the same object.
6
+ # Prefer `receive_messages` over multiple `receive`s on the same object.
7
7
#
8
8
# @safety
9
9
# The autocorrection is marked as unsafe, because it may change the
You can’t perform that action at this time.
0 commit comments