diff --git a/spec/models/garden_spec.rb b/spec/models/garden_spec.rb index 46ea9ae1c..28da5d0cb 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.zero? + garden.area.should == 0 end it "doesn't allow non-numeric quantities" do diff --git a/spec/models/harvest_spec.rb b/spec/models/harvest_spec.rb index 83fd515c2..2edcf5b0e 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.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