diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 16:42:29 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 18:42:27 +0300 |
commit | 1556d4848d4753b7bddd8430cf223b91e6f47b0f (patch) | |
tree | bb4c140f0d7c6fb4509c3830bf7de7d586e3363b /spec/models/user_spec.rb | |
parent | 8b7932c21951de172d531ab8a3e9506c98db7483 (diff) |
Track a user who created a pipeline
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r-- | spec/models/user_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index ff39f187759..fc74488ac0e 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -31,6 +31,8 @@ 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(:builds).dependent(:nullify) } + it { is_expected.to have_many(:pipelines).dependent(:nullify) } describe '#group_members' do it 'does not include group memberships for which user is a requester' do |