Sha256: d8c4375698b682b53e97e8e0b649a513c40868bda6587af9ec75055b7c25547d

Contents?: true

Size: 290 Bytes

Versions: 20

Compression:

Stored size: 290 Bytes

Contents

FactoryBot.define do
  factory :option_value, class: Spree::OptionValue do
    sequence(:name) { |n| "Size-#{n}" }

    presentation 'S'
    option_type
  end

  factory :option_type, class: Spree::OptionType do
    sequence(:name) { |n| "foo-size-#{n}" }
    presentation 'Size'
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
spree_core-3.4.6 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.2.9 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.6.6 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.6.5 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.6.4 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.6.3 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.6.2 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.6.1 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.6.0 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.5.0 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.3.6 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.2.8 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.6.0.rc1 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.5.0.rc2 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.5.0.rc1 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.4.5 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.3.5 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.4.4 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.4.3 lib/spree/testing_support/factories/options_factory.rb
spree_core-3.4.2 lib/spree/testing_support/factories/options_factory.rb