eBooru/test/factories/post_disapproval.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

9 lines
229 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory(:post_disapproval) do
reason { %w[borderline_quality borderline_relevancy other].sample }
sequence(:message) { |n| "post_disapproval_message_#{n}" }
end
end