docbrown/spec/factories/response_templates.rb
Andy Zhao d08f830d86
Add response templates model and table (#6615)
* 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
2020-03-16 09:52:03 +07:00

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