Add test case for App token when the instance does not allow public preview of its timelines

pull/30625/head
Emelia Smith 2024-06-09 18:03:36 +02:00
parent 827e36ff9e
commit 7875c06388
No known key found for this signature in database
1 changed files with 12 additions and 0 deletions

View File

@ -105,6 +105,18 @@ describe 'Public' do
it_behaves_like 'a successful request to the public timeline'
end
context 'with an authenticated application' do
let(:client_app) { Fabricate(:application) }
let(:token) { Fabricate(:accessible_access_token, application: client_app, scopes: scopes) }
# it_behaves_like 'a successful request to the public timeline'
it 'returns http unprocessable entity' do
subject
expect(response).to have_http_status(422)
end
end
context 'with an unauthenticated user' do
let(:headers) { {} }