diff --git a/spec/models/garden_spec.rb b/spec/models/garden_spec.rb index 28da5d0cb..46ea9ae1c 100644 --- a/spec/models/garden_spec.rb +++ b/spec/models/garden_spec.rb @@ -100,7 +100,7 @@ describe Garden do it 'cleans up zero quantities' do garden = FactoryBot.build(:garden, area: 0) - garden.area.should == 0 + garden.area.should.zero? end it "doesn't allow non-numeric quantities" do diff --git a/spec/models/harvest_spec.rb b/spec/models/harvest_spec.rb index 2edcf5b0e..83fd515c2 100644 --- a/spec/models/harvest_spec.rb +++ b/spec/models/harvest_spec.rb @@ -36,7 +36,7 @@ describe Harvest do it 'cleans up zero quantities' do @harvest = FactoryBot.build(:harvest, quantity: 0) - @harvest.quantity.should == 0 + @harvest.quantity.should.zero? 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 == 0 + @harvest.weight_quantity.should.zero? end it "doesn't allow non-numeric weight quantities" do