0
0
Fork 0

migrate test for GET /api/v1/accounts/{account_id} to request spec (#25322)

This commit is contained in:
fusagiko / takayamaki 2023-06-11 01:33:24 +09:00 committed by GitHub
parent 99216e34e5
commit b19a695608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 14 deletions

View file

@ -55,20 +55,6 @@ RSpec.describe Api::V1::AccountsController do
end
end
describe 'GET #show' do
let(:scopes) { 'read:accounts' }
before do
get :show, params: { id: user.account.id }
end
it 'returns http success' do
expect(response).to have_http_status(200)
end
it_behaves_like 'forbidden for wrong scope', 'write:statuses'
end
describe 'POST #follow' do
let(:scopes) { 'write:follows' }
let(:other_account) { Fabricate(:account, username: 'bob', locked: locked) }