Fix RSpec/MultipleSubjects cop (#24738)
This commit is contained in:
parent
bdcd8a9e88
commit
cf18cc2891
8 changed files with 11 additions and 25 deletions
|
@ -35,10 +35,9 @@ RSpec.describe ActivityPub::CollectionsController, type: :controller do
|
|||
describe 'GET #show' do
|
||||
context 'when id is "featured"' do
|
||||
context 'without signature' do
|
||||
subject(:body) { body_as_json }
|
||||
|
||||
subject(:response) { get :show, params: { id: 'featured', account_username: account.username } }
|
||||
|
||||
let(:body) { body_as_json }
|
||||
let(:remote_account) { nil }
|
||||
|
||||
it 'returns http success' do
|
||||
|
|
|
@ -34,10 +34,9 @@ RSpec.describe ActivityPub::FollowersSynchronizationsController, type: :controll
|
|||
end
|
||||
|
||||
context 'with signature from example.com' do
|
||||
subject(:body) { body_as_json }
|
||||
|
||||
subject(:response) { get :show, params: { account_username: account.username } }
|
||||
|
||||
let(:body) { body_as_json }
|
||||
let(:remote_account) { Fabricate(:account, domain: 'example.com', uri: 'https://example.com/instance') }
|
||||
|
||||
it 'returns http success' do
|
||||
|
|
|
@ -35,10 +35,9 @@ RSpec.describe ActivityPub::OutboxesController, type: :controller do
|
|||
|
||||
describe 'GET #show' do
|
||||
context 'without signature' do
|
||||
subject(:body) { body_as_json }
|
||||
|
||||
subject(:response) { get :show, params: { account_username: account.username, page: page } }
|
||||
|
||||
let(:body) { body_as_json }
|
||||
let(:remote_account) { nil }
|
||||
|
||||
context 'with page not requested' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue