diff options
author | Nick Thomas <nick@gitlab.com> | 2018-09-14 09:52:09 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-09-14 09:52:09 +0000 |
commit | fc0194b589238df6171ba3f4aeec79f8034b7128 (patch) | |
tree | cf61e7a7f0fa45b80de2a47f59d34bb60c1e4aab /spec/factories/emails.rb | |
parent | 9de6efe6d18b0c6881aa5074d6e805ac6202d5e5 (diff) | |
download | gitlab-ce-fc0194b589238df6171ba3f4aeec79f8034b7128.tar.gz |
Resolve "Add functionality to change what email address online actions commit using"
Diffstat (limited to 'spec/factories/emails.rb')
-rw-r--r-- | spec/factories/emails.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/factories/emails.rb b/spec/factories/emails.rb index 4dc7961060a..d23ddf9d79b 100644 --- a/spec/factories/emails.rb +++ b/spec/factories/emails.rb @@ -4,5 +4,6 @@ FactoryBot.define do email { generate(:email_alias) } trait(:confirmed) { confirmed_at Time.now } + trait(:skip_validate) { to_create {|instance| instance.save(validate: false) } } end end |