diff options
author | Sean McGivern <sean@gitlab.com> | 2016-07-07 14:41:48 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-07-07 22:49:17 +0300 |
commit | ea25e0918b77c2345585a968fbf5b73bb544aac7 (patch) | |
tree | 372a006af02dd94a7dcc958007e7c0335b4cac42 /spec/factories/notification_settings.rb | |
parent | 3c89a788c795fba2b050a0af0d8261e302d8cded (diff) |
Exclude projects pending delete from notifications
If the Sidekiq job fails for some reason, a project can be 'stuck'
pending deletion. The project can't be viewed, so it shouldn't be
available through the notification settings association as this will
throw an exception when we try to show the link.
Diffstat (limited to 'spec/factories/notification_settings.rb')
-rw-r--r-- | spec/factories/notification_settings.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/notification_settings.rb b/spec/factories/notification_settings.rb new file mode 100644 index 00000000000..b5e96d18b8f --- /dev/null +++ b/spec/factories/notification_settings.rb @@ -0,0 +1,8 @@ +FactoryGirl.define do + factory :notification_setting do + source factory: :empty_project + user + level 3 + events [] + end +end |