openstreetmap-website/test/factories/issue_comment.rb
Harry Wood e204e1d178 Add some basic testing of issue_comment model
A factory and a basic test of validation for the issue_comment model, similar to what we have for diary_comment.
2022-05-06 12:38:17 +01:00

8 lines
136 B
Ruby

FactoryBot.define do
factory :issue_comment do
sequence(:body) { |n| "This is issue comment #{n}" }
issue
user
end
end