A platform for community discussion. Free, open, simple.
DEV: Add test.
Dan Ungureanuceb74bef8ffc
diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rbindex 99a4b48a507..eeb26d3f003 100644--- a/spec/models/notification_spec.rb+++ b/spec/models/notification_spec.rb@@ -128,6 +128,12 @@ describe Notification doFabricate(:notification)end+ it 'works for partial model instances' do+ NotificationEmailer.disable+ partial_user = User.select(:id).find_by(id: Fabricate(:user).id)+ partial_user.notifications.create!(notification_type: Notification.types[:mentioned], data: '{}')+ end+context 'destroy' dolet!(:notification) { Fabricate(:notification) }