diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-04 15:07:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-04 15:07:52 +0300 |
commit | c6c7437861bff9572747674095c4dfbdfbea4988 (patch) | |
tree | 237d1ed922193f19ae326923457344c082003788 /spec/factories | |
parent | d80f3cd75e700b6e62910865bfd36734644ffa89 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/broadcast_messages.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/broadcast_messages.rb b/spec/factories/broadcast_messages.rb index ed6e267e7c4..fa8d255ae79 100644 --- a/spec/factories/broadcast_messages.rb +++ b/spec/factories/broadcast_messages.rb @@ -6,6 +6,8 @@ FactoryBot.define do starts_at { 1.day.ago } ends_at { 1.day.from_now } + broadcast_type { :banner } + trait :expired do starts_at { 5.days.ago } ends_at { 3.days.ago } @@ -15,5 +17,9 @@ FactoryBot.define do starts_at { 5.days.from_now } ends_at { 6.days.from_now } end + + trait :notification do + broadcast_type { :notification } + end end end |