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