# 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 } association :notifiable, factory: :post factory :no_email_notification do recipient { FactoryBot.create(:no_email_notifications_member) } end end end