mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 16:28:08 +01:00
Capture actual behavior in v2/notifications "someone else" dismiss scenario (#31985)
This commit is contained in:
parent
09459ed000
commit
9a03902ab6
1 changed files with 7 additions and 4 deletions
|
@ -312,12 +312,15 @@ RSpec.describe 'Notifications' do
|
|||
end
|
||||
|
||||
context 'when notification belongs to someone else' do
|
||||
let(:notification) { Fabricate(:notification) }
|
||||
let(:notification) { Fabricate(:notification, group_key: 'foobar') }
|
||||
|
||||
it 'returns http not found' do
|
||||
subject
|
||||
it 'leaves the notification alone' do
|
||||
expect { subject }
|
||||
.to_not change(Notification, :count)
|
||||
|
||||
expect(response).to have_http_status(404)
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue