Sha256: d44f739fa2ceea1b1cb5b140f1a58f92c8f98686398b979d120913ce44b63ac3

Contents?: true

Size: 337 Bytes

Versions: 3

Compression:

Stored size: 337 Bytes

Contents

FactoryGirl.define do
  factory :tb_commerce_option_set, :class => 'TbCommerce::OptionSet' do
    name "Size"
    description "Sizes for t-shirts"

    # Use the :with_options trait to auto genreate some options on the set
    trait :with_options do
      options {
        create_list(:tb_commerce_option, 2)
      }
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 spec/factories/tb_commerce_option_sets.rb
tb_commerce-0.0.3 spec/factories/tb_commerce_option_sets.rb
tb_commerce-0.0.2 spec/factories/tb_commerce_option_sets.rb