mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-24 11:12:42 +00:00
Merge commit from fork
This commit is contained in:
parent
6698901d57
commit
1b3ef035b9
2 changed files with 4 additions and 3 deletions
|
|
@ -163,9 +163,10 @@ RSpec.describe 'API Web Push Subscriptions' do
|
|||
end
|
||||
|
||||
describe 'PUT /api/web/push_subscriptions/:id' do
|
||||
before { sign_in Fabricate :user }
|
||||
before { sign_in user }
|
||||
|
||||
let(:subscription) { Fabricate :web_push_subscription }
|
||||
let(:user) { Fabricate(:user) }
|
||||
let(:subscription) { Fabricate(:web_push_subscription, user: user) }
|
||||
|
||||
it 'gracefully handles invalid nested params' do
|
||||
put api_web_push_subscription_path(subscription), params: { data: 'invalid' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue