Files
growstuff/spec/factories/notifications.rb
Daniel O'Connor d1f754a288 Rubocop
2022-11-08 00:23:38 +10:30

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