A factory and a basic test of validation for the issue_comment model, similar to what we have for diary_comment.
8 lines
136 B
Ruby
8 lines
136 B
Ruby
FactoryBot.define do
|
|
factory :issue_comment do
|
|
sequence(:body) { |n| "This is issue comment #{n}" }
|
|
|
|
issue
|
|
user
|
|
end
|
|
end
|