Autofix Rubocop RSpec/EmptyLineAfterSubject (#23719)
This commit is contained in:
parent
dbc6d7b276
commit
bd1d57c230
17 changed files with 19 additions and 21 deletions
|
@ -38,6 +38,7 @@ RSpec.describe ActivityPub::CollectionsController, type: :controller do
|
|||
let(:remote_account) { nil }
|
||||
|
||||
subject(:response) { get :show, params: { id: 'featured', account_username: account.username } }
|
||||
|
||||
subject(:body) { body_as_json }
|
||||
|
||||
it 'returns http success' do
|
||||
|
|
|
@ -35,6 +35,7 @@ RSpec.describe ActivityPub::FollowersSynchronizationsController, type: :controll
|
|||
let(:remote_account) { Fabricate(:account, domain: 'example.com', uri: 'https://example.com/instance') }
|
||||
|
||||
subject(:response) { get :show, params: { account_username: account.username } }
|
||||
|
||||
subject(:body) { body_as_json }
|
||||
|
||||
it 'returns http success' do
|
||||
|
|
|
@ -36,6 +36,7 @@ RSpec.describe ActivityPub::OutboxesController, type: :controller do
|
|||
let(:remote_account) { nil }
|
||||
|
||||
subject(:response) { get :show, params: { account_username: account.username, page: page } }
|
||||
|
||||
subject(:body) { body_as_json }
|
||||
|
||||
context 'with page not requested' do
|
||||
|
|
|
@ -181,6 +181,7 @@ RSpec.describe ActivityPub::RepliesController, type: :controller do
|
|||
|
||||
describe 'GET #index' do
|
||||
subject(:response) { get :index, params: { account_username: status.account.username, status_id: status.id, only_other_accounts: only_other_accounts } }
|
||||
|
||||
let(:only_other_accounts) { nil }
|
||||
|
||||
context 'with no signature' do
|
||||
|
|
|
@ -123,11 +123,13 @@ describe Admin::Reports::ActionsController do
|
|||
|
||||
context 'action as submit button' do
|
||||
subject { post :create, params: { report_id: report.id, text: text, action => '' } }
|
||||
|
||||
it_behaves_like 'all action types'
|
||||
end
|
||||
|
||||
context 'action as submit button' do
|
||||
subject { post :create, params: { report_id: report.id, text: text, moderation_action: action } }
|
||||
|
||||
it_behaves_like 'all action types'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -11,6 +11,7 @@ describe Api::Web::EmbedsController do
|
|||
|
||||
describe 'POST #create' do
|
||||
subject(:response) { post :create, params: { url: url } }
|
||||
|
||||
subject(:body) { JSON.parse(response.body, symbolize_names: true) }
|
||||
|
||||
context 'when successfully finds status' do
|
||||
|
|
|
@ -7,6 +7,7 @@ describe EmojisController do
|
|||
|
||||
describe 'GET #show' do
|
||||
subject(:response) { get :show, params: { id: emoji.id, format: :json } }
|
||||
|
||||
subject(:body) { JSON.parse(response.body, symbolize_names: true) }
|
||||
|
||||
it 'returns the right response' do
|
||||
|
|
|
@ -38,6 +38,7 @@ describe FollowerAccountsController do
|
|||
|
||||
context 'when format is json' do
|
||||
subject(:response) { get :index, params: { account_username: alice.username, page: page, format: :json } }
|
||||
|
||||
subject(:body) { JSON.parse(response.body) }
|
||||
|
||||
context 'with page' do
|
||||
|
|
|
@ -38,6 +38,7 @@ describe FollowingAccountsController do
|
|||
|
||||
context 'when format is json' do
|
||||
subject(:response) { get :index, params: { account_username: alice.username, page: page, format: :json } }
|
||||
|
||||
subject(:body) { JSON.parse(response.body) }
|
||||
|
||||
context 'with page' do
|
||||
|
|
|
@ -51,6 +51,7 @@ describe RelationshipsController do
|
|||
|
||||
context 'when select parameter is not provided' do
|
||||
subject { patch :update }
|
||||
|
||||
include_examples 'redirects back to followers page'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue