Typo fix in federation document (#37564)
This commit is contained in:
1 parent
8dcd388189
commit
7b9479239a
9 files changed
+63
-6
No files matched your search
@@ -190,6 +190,17 @@ RSpec.describe 'API Web Push Subscriptions' do
|
||||
.to eq(alerts_payload[:data][:alerts][type.to_sym].to_s)
|
||||
end
|
||||
end
|
||||
|
||||
context 'when using other user subscription' do
|
||||
let(:subscription) { Fabricate(:web_push_subscription) }
|
||||
|
||||
it 'does not change settings' do
|
||||
put api_web_push_subscription_path(subscription), params: alerts_payload
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(404)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def created_push_subscription
|
||||
|
||||
Reference in new issue
Block a user