scinote-web/spec/factories/user_system_notifications.rb
aignatov-bio 8e905b67b2
System notification navbar menu drop down [SCI 2955] (#1498)
* Add dropdown menu and icon for system notifications
* Finish system notification dropdown menu and add tests
2019-02-19 11:08:59 +01:00

19 lines
469 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :user_system_notification do
user
system_notification
trait :seen do
seen_at { Faker::Time.between(3.days.ago, Date.today) }
end
trait :read do
read_at { Faker::Time.between(3.days.ago, Date.today) }
end
trait :seen_and_read do
seen_at { Faker::Time.between(3.days.ago, Date.today) }
read_at { Faker::Time.between(seen_at, Date.today) }
end
end
end