Friday, September 20, 2024 2:34:27 AM
> settings

Customize


Authenticate

> user_notification_route.rb
# frozen_string_literal: true

FactoryBot.define do
  factory :user_notification_route, class: "ESM::UserNotificationRoute" do
    association :destination_community, factory: :community
    # association :source_server, factory: :server # The server requires a community
    association :user

    uuid { SecureRandom.uuid }
    source_server_id { nil }
    notification_type { "base-raid" }
    enabled { true }
    user_accepted { true }
    community_accepted { true }

    trait :not_accepted do
      user_accepted { false }
      community_accepted { false }
    end
  end
end
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8