Skip to content

Commit 8003aac

Browse files
committed
Adding in menstrual categories so diaperbase works for the helping women period.
1 parent 0317f4b commit 8003aac

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

db/canonical_items.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,13 @@
5050
],
5151
"Wipes - Childrens": [
5252
{ "name": "Wipes (Baby)", "qty": [0,0,162], "key": "wipes" }
53+
],
54+
"Menstrual Supplies/Items": [
55+
{ "name": "Pads", "qty": [0,0,1232], "key": "pads" },
56+
{ "name": "Tampons", "qty": [0,0,5162], "key": "tampons" },
57+
{ "name": "Adult Liners", "qty": [0,0,5162], "key": "liners" }
58+
],
59+
"Wipes - Adults": [
60+
{ "name": "Wipes (Adult)", "qty": [0,0,8362], "key": "adult_wipes" }
5361
]
5462
}

spec/models/item_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
item = create(:item, category: "same")
111111
create(:item, category: "different")
112112
result = Item.categories
113-
expect(result.length).to eq(10)
113+
expect(result.length).to eq(12)
114114
end
115115

116116
it "returns the list of categories alphabetized" do
@@ -127,7 +127,7 @@
127127
describe "storage_locations_containing" do
128128
it "retrieves all storage locations that contain an item" do
129129
item = create(:item)
130-
storage_location = create(:storage_location, :with_items, item: item, item_quantity: 10)
130+
storage_location = create(:storage_location, :with_items, item: item, item_quantity: 12)
131131
create(:storage_location)
132132
expect(Item.storage_locations_containing(item).first).to eq(storage_location)
133133
end

0 commit comments

Comments
 (0)