Rubocop - auto corrections

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

No files matched your search

+1 -1
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
+2 -2
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