eBooru/test/factories/comment.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

10 lines
196 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory(:comment) do
post { create(:post) }
sequence(:body) { |n| "comment_body_#{n}" }
creator_ip_addr { "127.0.0.1" }
end
end