Sha256: c530c5df6ca9877b82b1448e7c1722b0c6980eb2e69215658c4e90337e30174d

Contents?: true

Size: 605 Bytes

Versions: 13

Compression:

Stored size: 605 Bytes

Contents

class ShopProductVariantsDataset < Dataset::Base  
  
  uses :shop_products
  
  def load
    create_record :shop_product_variants, :mouldy_crusty_bread,
      :name     => 'mouldy',
      :price    => -2.50,
      :product  => shop_products(:crusty_bread)
    
    create_record :shop_product_variants, :fresh_crusty_bread,
      :name     => 'fresh',
      :price    => 2.50,
      :product  => shop_products(:crusty_bread)
      
    create_record :shop_product_variants, :royal_soft_bread,
      :name     => 'royal',
      :price    => 2.50,
      :product  => shop_products(:soft_bread)
  end
  
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
radiant-shop_variants-extension-0.1.3 spec/datasets/shop_product_variants.rb
radiant-shop_variants-extension-0.1.2 spec/datasets/shop_product_variants.rb
radiant-shop_variants-extension-0.1.1 spec/datasets/shop_product_variants.rb
radiant-shop_variants-extension-0.1.0 spec/datasets/shop_product_variants.rb
radiant-shop_variants-extension-0.0.4 spec/datasets/shop_product_variants.rb
radiant-shop_variants-extension-0.0.3 spec/datasets/shop_product_variants.rb
radiant-shop_variants-extension-0.0.1 spec/datasets/shop_product_variants.rb
radiant-shop-extension-0.11.6 spec/datasets/shop_product_variants.rb
radiant-shop-extension-0.11.5 spec/datasets/shop_product_variants.rb
radiant-shop-extension-0.11.4 spec/datasets/shop_product_variants.rb
radiant-shop-extension-0.11.3 spec/datasets/shop_product_variants.rb
radiant-shop-extension-0.11.1 spec/datasets/shop_product_variants.rb
radiant-shop-extension-0.11.0 spec/datasets/shop_product_variants.rb