mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-30 18:58:39 -04:00
- Deleted Elasticsearch gems from Gemfile and Gemfile.lock. - Updated README and TECH documentation to reflect the removal of Elasticsearch. - Removed Elasticsearch-related code from models, controllers, services, and factories. - Adjusted tests to eliminate dependencies on Elasticsearch. - Cleaned up Docker configuration and environment variables related to Elasticsearch. - Added a TODO file for future gem reviews and potential removals.
26 lines
498 B
Ruby
26 lines
498 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :post do
|
|
subject { Faker::Book.title }
|
|
|
|
body { Faker::Lorem.paragraphs.join("\n") }
|
|
author
|
|
created_at { Time.zone.now }
|
|
|
|
# Markdown is allowed in posts
|
|
factory :markdown_post do
|
|
body { "This is some **strong** text." }
|
|
end
|
|
|
|
# HTML isn't allowed in posts
|
|
factory :html_post do
|
|
body { '<a href="http://evil.com">EVIL</a>' }
|
|
end
|
|
|
|
factory :forum_post do
|
|
forum
|
|
end
|
|
end
|
|
end
|