diff options
Diffstat (limited to 'spec/factories/users')
-rw-r--r-- | spec/factories/users/ghost_user_migrations.rb | 1 | ||||
-rw-r--r-- | spec/factories/users/namespace_commit_emails.rb | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/users/ghost_user_migrations.rb b/spec/factories/users/ghost_user_migrations.rb index 0fe7cded4f3..77b7f7e6df4 100644 --- a/spec/factories/users/ghost_user_migrations.rb +++ b/spec/factories/users/ghost_user_migrations.rb @@ -5,5 +5,6 @@ FactoryBot.define do association :user initiator_user { association(:user) } hard_delete { false } + consume_after { Time.current } end end diff --git a/spec/factories/users/namespace_commit_emails.rb b/spec/factories/users/namespace_commit_emails.rb new file mode 100644 index 00000000000..2f7e89bf766 --- /dev/null +++ b/spec/factories/users/namespace_commit_emails.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :namespace_commit_email, class: 'Users::NamespaceCommitEmail' do + email + user { email.user } + namespace + end +end |