Sha256: 324667e7274666a4f3daaf573e42cef6c2758319528eef42895804d7ac0eb169

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

require 'date'

@adidas = Brand.create!(name: "Adidas")
@shoe = ProductCategory.create!(name: "Shoe")
@tee = ProductCategory.create!(name: "T-shirt")

Product.create!(
  brand_id: @adidas.id,
  category_id: @shoe.id,
  name: "Gazelle OG",
  created_at: DateTime.now - 10
)
Product.create!(
  brand_id: @adidas.id,
  category_id: @shoe.id,
  name: "Hamburg"
)
Product.create!(
  brand_id: @adidas.id,
  category_id: @tee.id,
  name: "Hamburg"
)
Product.create!(
  name: 'Nil product'
)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hario-0.3.2 test/fixtures.rb
hario-0.3.1 test/fixtures.rb