We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f49ba commit 95a1557Copy full SHA for 95a1557
spec/models/purchase_spec.rb
@@ -54,9 +54,6 @@
54
expect(d).to be_valid
55
end
56
57
- # re 5059-non-negative-purchase_value, adding in amount_spent_on_period_supplies_cents to test.
58
- # also adding in amount_spend_on_incontinence_cents because it was missing.
59
-
60
it "is not valid if any category negative" do
61
d = build(:purchase, amount_spent_on_diapers_cents: -1)
62
expect(d).not_to be_valid
@@ -68,7 +65,7 @@
68
65
69
66
70
67
71
- it "is valid if all categories are positive" do
+ it "is valid if all categories are positive and add up to the total" do
72
d = build(:purchase, amount_spent_in_cents: 1150,
73
amount_spent_on_diapers_cents: 200,
74
amount_spent_on_adult_incontinence_cents: 300,
0 commit comments