test/fixtures.rb in hario-0.2.0 vs test/fixtures.rb in hario-0.3.0
- old
+ new
@@ -1,12 +1,15 @@
+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"
+ name: "Gazelle OG",
+ created_at: DateTime.now - 10
)
Product.create!(
brand_id: @adidas.id,
category_id: @shoe.id,
name: "Hamburg"
\ No newline at end of file