Sha256: bc344c9f9a8db54c8a516fa0f84cbfc6a5d3ff05afb56ceac559f7e1d0533c6c

Contents?: true

Size: 347 Bytes

Versions: 102

Compression:

Stored size: 347 Bytes

Contents

FactoryBot.define do
  factory :prototype, class: Spree::Prototype do
    name       { 'Baseball Cap' }
    properties { [create(:property)] }
  end
  factory :prototype_with_option_types, class: Spree::Prototype do
    name         { 'Baseball Cap' }
    properties   { [create(:property)] }
    option_types { [create(:option_type)] }
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
spree_core-4.6.2 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.6.1 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.6.0 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.5.3 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.5.2 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.5.1 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.5.0 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.2.6 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.3.2 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.4.0 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.4.0.rc2 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.3.1 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.4.0.rc1 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.3.0 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.3.0.rc3 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.3.0.rc2 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.3.0.rc1 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.2.5 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.1.14 lib/spree/testing_support/factories/prototype_factory.rb
spree_core-4.0.8 lib/spree/testing_support/factories/prototype_factory.rb