Autofix Rubocop Style/HashSyntax (#23754)
This commit is contained in:
@ -15,7 +15,7 @@ describe Admin::Reports::ActionsController do
|
||||
let(:report) { Fabricate(:report) }
|
||||
|
||||
before do
|
||||
post :preview, params: { report_id: report.id, action => '' }
|
||||
post :preview, params: { :report_id => report.id, action => '' }
|
||||
end
|
||||
|
||||
context 'when the action is "suspend"' do
|
||||
|
@ -43,7 +43,7 @@ describe Admin::StatusesController do
|
||||
|
||||
describe 'POST #batch' do
|
||||
before do
|
||||
post :batch, params: { account_id: account.id, action => '', admin_status_batch_action: { status_ids: status_ids } }
|
||||
post :batch, params: { :account_id => account.id, action => '', :admin_status_batch_action => { status_ids: status_ids } }
|
||||
end
|
||||
|
||||
let(:status_ids) { [media_attached_status.id] }
|
||||
|
@ -35,8 +35,8 @@ describe ApplicationController do
|
||||
|
||||
before do
|
||||
routes.draw do
|
||||
match via: [:get, :post], 'success' => 'anonymous#success'
|
||||
match via: [:get, :post], 'signature_required' => 'anonymous#signature_required'
|
||||
match :via => [:get, :post], 'success' => 'anonymous#success'
|
||||
match :via => [:get, :post], 'signature_required' => 'anonymous#signature_required'
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user