Sha256: 3a38e2ea33ef2ae8ff17bd55ecd171939698cb21f41cbc0ac4521b8be43c03d1

Contents?: true

Size: 760 Bytes

Versions: 9

Compression:

Stored size: 760 Bytes

Contents

def create_categories
  @food = FactoryGirl.create(:category)
  @cleaning = FactoryGirl.create(:category, name: "Cleaning Supplies", description: "Household cleaning products.")
  @antiques = FactoryGirl.create(:category, name: "Antiques", active: false, description:"No longer carried.")
  @toilet = FactoryGirl.create(:category, name: "Toiletries", description: "Things for the bathroom.")
  @toys = FactoryGirl.create(:category, name: "Toys", description: "Anything that is meant to be played with.")
  @furniture = FactoryGirl.create(:category, name: "Furniture", float_score: 42.12097593749, description: "Furniture.")
end

def delete_categories
  @food.delete
  @cleaning.delete
  @antiques.delete
  @toilet.delete
  @toys.delete
  @furniture.delete
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ferry-2.0.0 spec/sets/category_context.rb
ferry-1.3.3 spec/sets/category_context.rb
ferry-1.3.2 spec/sets/category_context.rb
ferry-1.3.1 spec/sets/category_context.rb
ferry-1.3.0 spec/sets/category_context.rb
ferry-1.2.1 spec/sets/category_context.rb
ferry-1.2.0 spec/sets/category_context.rb
ferry-1.1.1 spec/sets/category_context.rb
ferry-1.1.0 spec/sets/category_context.rb