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 bb046eb commit dc4cd28Copy full SHA for dc4cd28
lib/rubocop/cop/rspec/message_spies.rb
@@ -12,17 +12,22 @@ module RSpec
12
#
13
# # bad
14
# expect(foo).to receive(:bar)
15
+ # subject
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
26
27
28
29
30
31
32
class MessageSpies < Base
33
include ConfigurableEnforcedStyle
0 commit comments