Remove Photo.reindex calls from test suite

The Photo model is no longer using Searchkick/Elasticsearch, so calling
`Photo.reindex` causes a NoMethodError. This commit removes these calls
from `spec/spec_helper.rb` and feature specs, and removes the unused
`:reindex` trait from the photo factory call in `likeable_spec.rb`.

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot]
2026-06-23 14:00:08 +00:00
parent 452b0c4eba
commit d6b9ededec
3 changed files with 1 additions and 7 deletions

View File

@@ -28,7 +28,6 @@ describe "home page", :search do
Planting.reindex
Seed.reindex
Harvest.reindex
Photo.reindex
visit root_path
end

View File

@@ -6,14 +6,10 @@ describe 'Likeable', :js, :search do
let(:another_member) { create(:london_member) }
let!(:post) { create(:post, :reindex, author: member) }
let!(:activity) { create(:activity, :reindex, owner: member) }
let!(:photo) { create(:photo, :reindex, owner: member) }
let!(:photo) { create(:photo, owner: member) }
let!(:harvest) { create(:harvest, :reindex, owner: member) }
let!(:planting) { create(:planting, :reindex, owner: member) }
before do
Photo.reindex
end
include_context 'signed in member'
shared_examples 'object can be liked' do

View File

@@ -47,7 +47,6 @@ RSpec.configure do |config|
# reindex models
Crop.reindex
Harvest.reindex
Photo.reindex
Planting.reindex
Seed.reindex
end