diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/factories/audit_events.rb | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/factories/audit_events.rb')
-rw-r--r-- | spec/factories/audit_events.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/factories/audit_events.rb b/spec/factories/audit_events.rb index 5497648273c..4e72976a9e5 100644 --- a/spec/factories/audit_events.rb +++ b/spec/factories/audit_events.rb @@ -4,7 +4,7 @@ FactoryBot.define do factory :audit_event, class: 'AuditEvent', aliases: [:user_audit_event] do user - transient { target_user { create(:user) } } + transient { target_user { association(:user) } } entity_type { 'User' } entity_id { target_user.id } @@ -27,7 +27,7 @@ FactoryBot.define do end trait :project_event do - transient { target_project { create(:project) } } + transient { target_project { association(:project) } } entity_type { 'Project' } entity_id { target_project.id } @@ -50,7 +50,7 @@ FactoryBot.define do end trait :group_event do - transient { target_group { create(:group) } } + transient { target_group { association(:group) } } entity_type { 'Group' } entity_id { target_group.id } |