mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-27 01:08:30 -04:00
1 parent
06c5e4b8e8
commit
89a2dda637
2 files changed
+3
-3
No files matched your search
@@ -100,7 +100,7 @@ describe Garden do
|
||||
|
||||
it 'cleans up zero quantities' do
|
||||
garden = FactoryBot.build(:garden, area: 0)
|
||||
garden.area.should.zero?
|
||||
garden.area.should == 0
|
||||
end
|
||||
|
||||
it "doesn't allow non-numeric quantities" do
|
||||
|
||||
@@ -36,7 +36,7 @@ describe Harvest do
|
||||
|
||||
it 'cleans up zero quantities' do
|
||||
@harvest = FactoryBot.build(:harvest, quantity: 0)
|
||||
@harvest.quantity.should.zero?
|
||||
@harvest.quantity.should == 0
|
||||
end
|
||||
|
||||
it "doesn't allow non-numeric quantities" do
|
||||
@@ -90,7 +90,7 @@ describe Harvest do
|
||||
|
||||
it 'cleans up zero quantities' do
|
||||
@harvest = FactoryBot.build(:harvest, weight_quantity: 0)
|
||||
@harvest.weight_quantity.should.zero?
|
||||
@harvest.weight_quantity.should == 0
|
||||
end
|
||||
|
||||
it "doesn't allow non-numeric weight quantities" do
|
||||
|
||||
Reference in new issue
Block a user