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 18d08d3 commit 084a7bbCopy full SHA for 084a7bb
spec/models/donation_spec.rb
@@ -64,7 +64,7 @@
64
expect(d).not_to be_valid
65
end
66
it "ensures that money_raised cannot be negative" do
67
- expect(build(:donation, money_raised: -100)).not_to be_valid
+ expect(build(:donation, money_raised: -1)).not_to be_valid
68
expect(build(:donation, money_raised: 0)).to be_valid
69
expect(build(:donation, money_raised: 100)).to be_valid
70
expect(build(:donation, money_raised: nil)).to be_valid
0 commit comments