mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-17 19:12:37 -05:00
19 lines
482 B
Ruby
19 lines
482 B
Ruby
|
Fabricator(:queued_post) do
|
||
|
queue 'new_post'
|
||
|
state QueuedPost.states[:new]
|
||
|
user
|
||
|
topic
|
||
|
raw 'This post should be queued up'
|
||
|
post_options do
|
||
|
{ reply_to_post_number: 1,
|
||
|
via_email: true,
|
||
|
raw_email: 'store_me',
|
||
|
auto_track: true,
|
||
|
custom_fields: { hello: 'world' },
|
||
|
cooking_options: { cat: 'hat' },
|
||
|
cook_method: Post.cook_methods[:raw_html],
|
||
|
image_sizes: {"http://foo.bar/image.png" => {"width" => 0, "height" => 222}} }
|
||
|
end
|
||
|
end
|
||
|
|