mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-22 02:03:18 +00:00
Move shared params to common method in admin/reports/actions (#35353)
This commit is contained in:
parent
a3ffd2edf8
commit
7273f6c03c
2 changed files with 28 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue