summaryrefslogtreecommitdiff
path: root/spec/models/user_spec.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-03-05 18:23:42 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-03-05 18:53:00 +0100
commit91ce04678ea78f2042026e8584e5d1069853dbc4 (patch)
treed26addff8e83b10704ea67ba2c1cd460adf4b9ea /spec/models/user_spec.rb
parent0a75de2909152351483b317024fcab2e9bb08e16 (diff)
downloadgitlab-ce-91ce04678ea78f2042026e8584e5d1069853dbc4.tar.gz
Make triggers to be user aware
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index e86b4a761d9..b99cde64675 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -32,6 +32,7 @@ describe User, models: true do
it { is_expected.to have_many(:spam_logs).dependent(:destroy) }
it { is_expected.to have_many(:todos).dependent(:destroy) }
it { is_expected.to have_many(:award_emoji).dependent(:destroy) }
+ it { is_expected.to have_many(:triggers).dependent(:destroy) }
it { is_expected.to have_many(:builds).dependent(:nullify) }
it { is_expected.to have_many(:pipelines).dependent(:nullify) }
it { is_expected.to have_many(:chat_names).dependent(:destroy) }