mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-11 18:38:50 -04:00
Rubocop - auto corrections
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user