Skip to content

Commit a396cc8

Browse files
authored
Merge pull request #2091 from lovro-bikic/receive-messages-description
Adjust `RSpec/ReceiveMessages` description
2 parents b0fda47 + feb34a9 commit a396cc8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ RSpec/ReceiveCounts:
782782
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReceiveCounts
783783

784784
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.
786786
Enabled: true
787787
SafeAutoCorrect: false
788788
VersionAdded: '2.23'

docs/modules/ROOT/pages/cops_rspec.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4887,7 +4887,7 @@ expect(foo).to receive(:bar).at_most(:twice).times
48874887
| -
48884888
|===
48894889
4890-
Checks for multiple messages stubbed on the same object.
4890+
Prefer `receive_messages` over multiple `receive`s on the same object.
48914891
48924892
[#safety-rspecreceivemessages]
48934893
=== Safety

lib/rubocop/cop/rspec/receive_messages.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module RuboCop
44
module Cop
55
module RSpec
6-
# Checks for multiple messages stubbed on the same object.
6+
# Prefer `receive_messages` over multiple `receive`s on the same object.
77
#
88
# @safety
99
# The autocorrection is marked as unsafe, because it may change the

0 commit comments

Comments
 (0)