summaryrefslogtreecommitdiff
path: root/spec/controllers/abuse_reports_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/abuse_reports_controller_spec.rb')
-rw-r--r--spec/controllers/abuse_reports_controller_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/abuse_reports_controller_spec.rb b/spec/controllers/abuse_reports_controller_spec.rb
index e360ab68cf2..e573ef4be49 100644
--- a/spec/controllers/abuse_reports_controller_spec.rb
+++ b/spec/controllers/abuse_reports_controller_spec.rb
@@ -49,7 +49,9 @@ describe AbuseReportsController do
end
it 'calls notify' do
- expect_any_instance_of(AbuseReport).to receive(:notify)
+ expect_next_instance_of(AbuseReport) do |instance|
+ expect(instance).to receive(:notify)
+ end
post :create, params: { abuse_report: attrs }
end