Fix style for hashes (#20518)
* Fix style for hashes Make the style for hashes consistent. * New style More consistency
This commit is contained in:
@ -41,7 +41,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] }
|
||||
|
@ -23,7 +23,7 @@ RSpec.describe FavouriteService, type: :service do
|
||||
let(:status) { Fabricate(:status, account: bob) }
|
||||
|
||||
before do
|
||||
stub_request(:post, "http://example.com/inbox").to_return(:status => 200, :body => "", :headers => {})
|
||||
stub_request(:post, "http://example.com/inbox").to_return(status: 200, body: "", headers: {})
|
||||
subject.call(sender, status)
|
||||
end
|
||||
|
||||
|
@ -140,7 +140,7 @@ RSpec.describe FollowService, type: :service do
|
||||
let(:bob) { Fabricate(:account, username: 'bob', domain: 'example.com', protocol: :activitypub, inbox_url: 'http://example.com/inbox') }
|
||||
|
||||
before do
|
||||
stub_request(:post, "http://example.com/inbox").to_return(:status => 200, :body => "", :headers => {})
|
||||
stub_request(:post, "http://example.com/inbox").to_return(status: 200, body: "", headers: {})
|
||||
subject.call(sender, bob)
|
||||
end
|
||||
|
||||
|
@ -4,7 +4,7 @@ require 'rails_helper'
|
||||
|
||||
describe 'statuses/show.html.haml', without_verify_partial_doubles: true do
|
||||
before do
|
||||
double(:api_oembed_url => '')
|
||||
double(api_oembed_url: '')
|
||||
allow(view).to receive(:show_landing_strip?).and_return(true)
|
||||
allow(view).to receive(:site_title).and_return('example site')
|
||||
allow(view).to receive(:site_hostname).and_return('example.com')
|
||||
|
Reference in New Issue
Block a user