mirror of https://github.com/mastodon/mastodon.git
Add test case for App token when the instance does not allow public preview of its timelines
parent
827e36ff9e
commit
7875c06388
|
@ -105,6 +105,18 @@ describe 'Public' do
|
||||||
it_behaves_like 'a successful request to the public timeline'
|
it_behaves_like 'a successful request to the public timeline'
|
||||||
end
|
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
|
context 'with an unauthenticated user' do
|
||||||
let(:headers) { {} }
|
let(:headers) { {} }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue