Skip to content

Commit c82391e

Browse files
authored
Update message_spies.rb
1 parent dc4cd28 commit c82391e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/rubocop/cop/rspec/message_spies.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,23 @@ module RSpec
1212
#
1313
# # bad
1414
# expect(foo).to receive(:bar)
15-
# subject
15+
# do_something
1616
#
1717
# # good
1818
# allow(foo).to receive(:bar) # or use instance_spy
19-
# subject
19+
# do_something
2020
# expect(foo).to have_received(:bar)
2121
#
2222
# @example `EnforcedStyle: receive`
2323
#
2424
# # bad
25-
# subject
25+
# allow(foo).to receive(:bar)
26+
# do_something
2627
# expect(foo).to have_received(:bar)
2728
#
2829
# # good
2930
# expect(foo).to receive(:bar)
30-
# subject
31+
# do_something
3132
#
3233
class MessageSpies < Base
3334
include ConfigurableEnforcedStyle

0 commit comments

Comments
 (0)