Autofix Rubocop Style/HashSyntax (#23754)

This commit is contained in:
Nick Schonning
2023-05-03 23:54:26 -04:00
committed by GitHub
parent d5a185d721
commit da3bd913ae
7 changed files with 9 additions and 22 deletions

View File

@ -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

View File

@ -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] }

View File

@ -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