mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 07:01:03 -05:00
Auto corrected by following Lint Ruby RSpec/LetBeforeExamples
This commit is contained in:
@@ -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