Merge commit '00cb4a0313190bfa118966692a649db9c8328094' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2024-07-14 18:43:35 +02:00
commit edec2e9fdf
12 files changed
+96 -119

No files matched your search

+1 -11
View File
@@ -4,9 +4,7 @@ require 'rails_helper'
RSpec.describe NotificationRequest do
describe '#reconsider_existence!' do
subject { Fabricate(:notification_request, dismissed: dismissed) }
let(:dismissed) { false }
subject { Fabricate(:notification_request) }
context 'when there are remaining notifications' do
before do
@@ -28,14 +26,6 @@ RSpec.describe NotificationRequest do
subject.reconsider_existence!
end
context 'when dismissed' do
let(:dismissed) { true }
it 'leaves request intact' do
expect(subject.destroyed?).to be false
end
end
it 'removes the request' do
expect(subject.destroyed?).to be true
end