Skip to content

Commit 084a7bb

Browse files
committed
Update donation_spec to validate money_raised with a value of -1 instead of -100
1 parent 18d08d3 commit 084a7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/models/donation_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
expect(d).not_to be_valid
6565
end
6666
it "ensures that money_raised cannot be negative" do
67-
expect(build(:donation, money_raised: -100)).not_to be_valid
67+
expect(build(:donation, money_raised: -1)).not_to be_valid
6868
expect(build(:donation, money_raised: 0)).to be_valid
6969
expect(build(:donation, money_raised: 100)).to be_valid
7070
expect(build(:donation, money_raised: nil)).to be_valid

0 commit comments

Comments
 (0)