Sha256: 476961ababdcafc21d1cbf5de6052b5d4f59b3caf3a5412fe17348306d8bfe62

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 Bytes

Contents

FactoryGirl.define do
  factory :affiliate, class: Spree::Affiliate do
    name Faker::Name.first_name
    path Faker::Name.first_name
    partial Faker::Name.first_name
    layout nil
  end

  factory :referral, class: Spree::Referral
  factory :referred_promotion_rule, class: Spree::Promotion::Rules::ReferredPromotionRule
  factory :affiliated_promotion_rule, class: Spree::Promotion::Rules::AffiliatedPromotionRule
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_reffiliate-2.4.1 lib/spree_reffiliate/factories.rb
spree_reffiliate-2.3.1 lib/spree_reffiliate/factories.rb