Skip to content

Commit 95a1557

Browse files
committed
Update test description and remove comment
1 parent 54f49ba commit 95a1557

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spec/models/purchase_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@
5454
expect(d).to be_valid
5555
end
5656

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-
6057
it "is not valid if any category negative" do
6158
d = build(:purchase, amount_spent_on_diapers_cents: -1)
6259
expect(d).not_to be_valid
@@ -68,7 +65,7 @@
6865
expect(d).not_to be_valid
6966
end
7067

71-
it "is valid if all categories are positive" do
68+
it "is valid if all categories are positive and add up to the total" do
7269
d = build(:purchase, amount_spent_in_cents: 1150,
7370
amount_spent_on_diapers_cents: 200,
7471
amount_spent_on_adult_incontinence_cents: 300,

0 commit comments

Comments
 (0)