migrate test for GET /api/v1/accounts/{account_id}
to request spec (#25322)
This commit is contained in:
parent
99216e34e5
commit
b19a695608
2 changed files with 53 additions and 14 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue