discourse/spec/fabricators/post_revision_fabricator.rb

9 lines
168 B
Ruby

Fabricator(:post_revision) do
post
user
number 3
modifications do
{ "cooked" => ["<p>BEFORE</p>", "<p>AFTER</p>"], "raw" => ["BEFORE", "AFTER"] }
end
end