gitlab-org--gitlab-foss/spec/factories/notification_settings.rb
Sean McGivern ea25e0918b 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.
2016-07-07 20:49:17 +01:00

8 lines
137 B
Ruby

FactoryGirl.define do
factory :notification_setting do
source factory: :empty_project
user
level 3
events []
end
end