Autofix Rubocop RSpec/LeadingSubject (#23670)
This commit is contained in:
@@ -4,6 +4,10 @@ describe WellKnown::WebfingerController, type: :controller do
|
||||
render_views
|
||||
|
||||
describe 'GET #show' do
|
||||
subject do
|
||||
get :show, params: { resource: resource }, format: :json
|
||||
end
|
||||
|
||||
let(:alternate_domains) { [] }
|
||||
let(:alice) { Fabricate(:account, username: 'alice') }
|
||||
let(:resource) { nil }
|
||||
@@ -15,10 +19,6 @@ describe WellKnown::WebfingerController, type: :controller do
|
||||
Rails.configuration.x.alternate_domains = tmp
|
||||
end
|
||||
|
||||
subject do
|
||||
get :show, params: { resource: resource }, format: :json
|
||||
end
|
||||
|
||||
shared_examples 'a successful response' do
|
||||
it 'returns http success' do
|
||||
expect(response).to have_http_status(200)
|
||||
|
Reference in New Issue
Block a user