Auto corrected by following Lint Ruby RSpec/LetBeforeExamples

This commit is contained in:
Awesome Code
2019-04-14 19:38:16 +00:00
parent ff3ea5c52f
commit b9ca89b336

View File

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