summaryrefslogtreecommitdiff
path: root/spec/rubocop/cop/rspec
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubocop/cop/rspec')
-rw-r--r--spec/rubocop/cop/rspec/any_instance_of_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/rubocop/cop/rspec/any_instance_of_spec.rb b/spec/rubocop/cop/rspec/any_instance_of_spec.rb
index 11c0f109850..971e28853a3 100644
--- a/spec/rubocop/cop/rspec/any_instance_of_spec.rb
+++ b/spec/rubocop/cop/rspec/any_instance_of_spec.rb
@@ -15,6 +15,7 @@ RSpec.describe RuboCop::Cop::RSpec::AnyInstanceOf, type: :rubocop do
allow_any_instance_of(User).to receive(:invalidate_issue_cache_counts)
SRC
end
+
let(:corrected_source) do
<<~SRC
allow_next_instance_of(User) do |instance|
@@ -40,6 +41,7 @@ RSpec.describe RuboCop::Cop::RSpec::AnyInstanceOf, type: :rubocop do
expect_any_instance_of(User).to receive(:invalidate_issue_cache_counts).with(args).and_return(double)
SRC
end
+
let(:corrected_source) do
<<~SRC
expect_next_instance_of(User) do |instance|