FactoryGirl.define do
  factory :unity_subscription, class: "Unity::Subscription" do
    sequence(:gateway_id) { "unity_#{Rails.env}_#{rand(1..100)}" }
    association :subscription_plan, factory: :premium_monthly_plan

    trait :premium_monthly do
      association :subscription_plan, factory: :premium_monthly_plan
    end
  end
end
