0
0
Fork 0

Add some more tests for notification policies (#29698)

This commit is contained in:
Claire 2024-03-21 17:46:38 +01:00 committed by GitHub
parent a59f5694fe
commit 814a48517f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 10 deletions

View file

@ -82,15 +82,10 @@ RSpec.describe 'Requests' do
it_behaves_like 'forbidden for wrong scope', 'read read:notifications'
it 'returns http success' do
it 'returns http success and dismisses the notification request', :aggregate_failures do
subject
expect(response).to have_http_status(200)
end
it 'dismisses the notification request' do
subject
expect(notification_request.reload.dismissed?).to be true
end