We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc4cd28 commit c82391eCopy full SHA for c82391e
lib/rubocop/cop/rspec/message_spies.rb
@@ -12,22 +12,23 @@ module RSpec
12
#
13
# # bad
14
# expect(foo).to receive(:bar)
15
- # subject
+ # do_something
16
17
# # good
18
# allow(foo).to receive(:bar) # or use instance_spy
19
20
# expect(foo).to have_received(:bar)
21
22
# @example `EnforcedStyle: receive`
23
24
25
+ # allow(foo).to receive(:bar)
26
27
28
29
30
31
32
33
class MessageSpies < Base
34
include ConfigurableEnforcedStyle
0 commit comments