diff options
Diffstat (limited to 'spec/helpers/admin/abuse_reports_helper_spec.rb')
-rw-r--r-- | spec/helpers/admin/abuse_reports_helper_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/helpers/admin/abuse_reports_helper_spec.rb b/spec/helpers/admin/abuse_reports_helper_spec.rb index 6a7630dc76a..d6f102682ba 100644 --- a/spec/helpers/admin/abuse_reports_helper_spec.rb +++ b/spec/helpers/admin/abuse_reports_helper_spec.rb @@ -25,10 +25,14 @@ RSpec.describe Admin::AbuseReportsHelper, feature_category: :insider_threat do describe '#abuse_report_data' do let(:report) { build_stubbed(:abuse_report) } - subject(:data) { helper.abuse_report_data(report)[:abuse_report_data] } + subject(:data) { helper.abuse_report_data(report) } it 'has the expected attributes' do - expect(data).to include('user', 'reporter', 'report') + expect(data[:abuse_report_data]).to include('user', 'reporter', 'report') + end + + it 'includes path to abuse reports list page' do + expect(data[:abuse_reports_list_path]).to eq admin_abuse_reports_path end end end |