From 39ea0d488242158cf5af0677fa40f63afefcd671 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sun, 6 Nov 2022 16:35:09 +1030 Subject: [PATCH] Rubocop - auto corrections --- 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 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