* Add response templates model and table * Add missing factory oops * Remove response templates on delete * Remove moderator_id column from comments for now * Use constants and add spec for response templates
10 lines
237 B
Ruby
10 lines
237 B
Ruby
FactoryBot.define do
|
|
factory :response_template do
|
|
sequence(:content) { |n| "#{Faker::Lorem.sentence}#{n}" }
|
|
|
|
user
|
|
type_of { "personal_comment" }
|
|
content_type { "body_markdown" }
|
|
title { generate :title }
|
|
end
|
|
end
|