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 c82391e commit 52bc397Copy full SHA for 52bc397
docs/modules/ROOT/pages/cops_rspec.adoc
@@ -2678,8 +2678,11 @@ This cop can be configured in your configuration using the
2678
----
2679
# bad
2680
expect(foo).to receive(:bar)
2681
+do_something
2682
2683
# good
2684
+allow(foo).to receive(:bar) # or use instance_spy
2685
2686
expect(foo).to have_received(:bar)
2687
2688
@@ -2688,10 +2691,13 @@ expect(foo).to have_received(:bar)
2691
[source,ruby]
2689
2692
2690
2693
2694
+allow(foo).to receive(:bar)
2695
2696
2697
2698
2699
2700
2701
2702
2703
=== Configurable attributes
0 commit comments