This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
e07819cbf7
gitlab-org--gitlab-foss
/
spec
/
factories
/
notification_settings.rb
8 lines
117 B
Ruby
Raw
Normal View
History
Unescape
Escape
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 07:41:48 -04:00
FactoryGirl
.
define
do
factory
:notification_setting
do
Change all `:empty_project` to `:project`
2017-08-02 15:55:11 -04:00
source
factory
:
:project
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 07:41:48 -04:00
user
level
3
end
end
Copy permalink