Move shared params to common method in admin/reports/actions (#35353)

This commit is contained in:
Matt Jankowski 2025-07-14 05:23:18 -04:00 committed by GitHub
parent a3ffd2edf8
commit 7273f6c03c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 20 deletions

View file

@ -144,6 +144,12 @@ RSpec.describe Admin::Reports::ActionsController do
expect(media_attached_status.reload.sensitive).to be true
end
end
context 'when the action is "invalid_action"' do
let(:action) { 'invalid_action' }
it { is_expected.to redirect_to(admin_report_path(report)) }
end
end
context 'with action as submit button' do