From 89a2dda637bd9ecd086fb5c8987a7e675cae55a1 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Mon, 7 Nov 2022 23:21:05 +1030 Subject: [PATCH] Revert "Rubocop - auto corrections" This reverts commit 39ea0d488242158cf5af0677fa40f63afefcd671. --- spec/models/garden_spec.rb | 2 +- spec/models/harvest_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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