* Bump factory_bot_rails from 4.10.0 to 4.11.0 Bumps [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails) from 4.10.0 to 4.11.0. - [Release notes](https://github.com/thoughtbot/factory_bot_rails/releases) - [Changelog](https://github.com/thoughtbot/factory_bot_rails/blob/master/NEWS) - [Commits](https://github.com/thoughtbot/factory_bot_rails/compare/v4.10.0...v4.11.0) Signed-off-by: dependabot[bot] <support@dependabot.com> * Update factories to always use blocks
15 lines
311 B
Ruby
15 lines
311 B
Ruby
FactoryBot.define do
|
|
factory :broadcast do
|
|
sent { false }
|
|
end
|
|
|
|
trait :onboarding do
|
|
title { "Welcome Notification" }
|
|
type_of { "Onboarding" }
|
|
processed_html { "Welcome! Introduce yourself in our <a href='/welcome'>welcome thread!</a>" }
|
|
end
|
|
|
|
trait :sent do
|
|
sent { true }
|
|
end
|
|
end
|