Sha256: e1f3f6d4c81cbeb376f6436cdfef8e6951c48370f492c48e94de7557995ab015

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

FactoryGirl.define do
  factory :gemgento_product, class: 'Gemgento::Product'  do
    sku { Faker::Code.isbn }
    association :product_attribute_set, factory: :gemgento_product_attribute_set
    sync_needed false
    status true
    stores {[FactoryGirl.create(:gemgento_store)]}

    factory :gemgento_product_with_attributes do
      association :product_attribute_set, factory: :gemgento_product_attribute_set_with_attributes
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 spec/factories/gemgento/products.rb