mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-06 08:27:47 -05:00
20 lines
461 B
Ruby
20 lines
461 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_bot
|
|
|
|
FactoryBot.define do
|
|
factory :notification, aliases: [:message] do
|
|
sender { FactoryBot.create(:member) }
|
|
recipient { FactoryBot.create(:member) }
|
|
subject { "MyString" }
|
|
|
|
body { "MyText" }
|
|
read { false }
|
|
post
|
|
|
|
factory :no_email_notification do
|
|
recipient { FactoryBot.create(:no_email_notifications_member) }
|
|
end
|
|
end
|
|
end
|