mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-02 10:54:31 -04:00
Auto corrected by following Lint Ruby RSpec/LetBeforeExamples
This commit is contained in:
1 parent
ff3ea5c52f
commit
b9ca89b336
1 file changed
+3
-3
@@ -1,6 +1,9 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe Crop do
|
||||
let(:pp2) { FactoryBot.create(:plant_part) }
|
||||
let(:pp1) { FactoryBot.create(:plant_part) }
|
||||
let(:maize) { FactoryBot.create(:maize) }
|
||||
context 'all fields present' do
|
||||
let(:crop) { FactoryBot.create(:tomato) }
|
||||
|
||||
@@ -342,9 +345,6 @@ describe Crop do
|
||||
end
|
||||
end
|
||||
|
||||
let(:maize) { FactoryBot.create(:maize) }
|
||||
let(:pp1) { FactoryBot.create(:plant_part) }
|
||||
let(:pp2) { FactoryBot.create(:plant_part) }
|
||||
|
||||
context "harvests" do
|
||||
let(:h1) { FactoryBot.create(:harvest, crop: maize, plant_part: pp1) }
|
||||
|
||||
Reference in new issue
Block a user