Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/notification_setting_spec.rb')
-rw-r--r--spec/models/notification_setting_spec.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/models/notification_setting_spec.rb b/spec/models/notification_setting_spec.rb
index 9bf95051730..cb1bbb91a67 100644
--- a/spec/models/notification_setting_spec.rb
+++ b/spec/models/notification_setting_spec.rb
@@ -193,7 +193,11 @@ RSpec.describe NotificationSetting do
end
it 'includes EXCLUDED_WATCHER_EVENTS' do
- expect(subject).to include(*described_class::EXCLUDED_WATCHER_EVENTS)
+ expect(subject).to include(
+ :push_to_merge_request,
+ :issue_due,
+ :success_pipeline
+ )
end
end
@@ -224,8 +228,8 @@ RSpec.describe NotificationSetting do
context 'with loose foreign key on notification_settings.user_id' do
it_behaves_like 'cleanup by a loose foreign key' do
- let!(:parent) { create(:user) }
- let!(:model) { create(:notification_setting, user: parent) }
+ let_it_be(:parent) { create(:user) }
+ let_it_be(:model) { create(:notification_setting, user: parent) }
end
end
end