mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
Add someone else's plantings, to ensure test is valid
This commit is contained in:
@@ -68,6 +68,7 @@ RSpec.describe CropSearchService, type: :service do
|
||||
describe "biased to crops you've planted" do
|
||||
let(:owner) { FactoryBot.create :member }
|
||||
before do
|
||||
FactoryBot.create_list :planting, 10, crop: brown
|
||||
FactoryBot.create :planting, crop: oyster, owner: owner
|
||||
FactoryBot.create :planting, crop: oyster, owner: owner
|
||||
FactoryBot.create :planting, crop: shitake, owner: owner
|
||||
|
||||
Reference in New Issue
Block a user