Sha256: ef7bb83715f76c892f05cc181f4d31231cfa5fc82b9de1220a45644e545bd6d4

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

FactoryGirl.define do
  factory :susply_subscription, :class => 'Susply::Subscription' do
    trait :inactive do
      deactivated_at Time.zone.now
    end

    trait :active do
      deactivated_at nil
    end

    owner_id 1
    association :plan, factory: :susply_plan
    start "2015-05-13 13:01:24"
    current_period_start "2015-05-13 13:01:24"
    current_period_end "2015-05-13 13:01:24"
    quantity 1
    deactivated_at nil
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
susply-1.0.0 spec/factories/susply_subscriptions.rb
susply-0.0.2 spec/factories/susply_subscriptions.rb
susply-0.0.1 spec/factories/susply_subscriptions.rb