Rubocop - auto corrections

This commit is contained in:
Daniel O'Connor
2022-11-06 16:35:09 +10:30
parent b24b9f82e6
commit 39ea0d4882
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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