mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Merge commit '752d49eefef48262d501ba5fc2006d2c8466a000' into glitch-soc/merge-upstream
Conflicts: - `app/lib/feed_manager.rb`: Upstream changed how notifications from follow subscriptions were handled, refactoring this file in the process. Conflict is due to glitch-soc having an extra timeline type (direct). Ported upstream's changes. - `app/workers/feed_insert_worker.rb`: Ditto.
This commit is contained in:
@@ -135,6 +135,23 @@ RSpec.describe 'API V1 Push Subscriptions' do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'GET /api/v1/push/subscription' do
|
||||
subject { get '/api/v1/push/subscription', headers: headers }
|
||||
|
||||
before { create_subscription_with_token }
|
||||
|
||||
it 'shows subscription details' do
|
||||
subject
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
expect(response.parsed_body)
|
||||
.to include(endpoint: endpoint)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'DELETE /api/v1/push/subscription' do
|
||||
subject { delete '/api/v1/push/subscription', headers: headers }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user