mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
allow users to specify thumbnail size
This commit is contained in:
@ -393,8 +393,8 @@ describe PostsController do
|
||||
end
|
||||
|
||||
it "passes image_sizes through" do
|
||||
PostCreator.expects(:new).with(user, has_entries('image_sizes' => 'test')).returns(post_creator)
|
||||
xhr :post, :create, {raw: 'hello', image_sizes: 'test'}
|
||||
PostCreator.expects(:new).with(user, has_entries('image_sizes' => {'width' => '100', 'height' => '200'})).returns(post_creator)
|
||||
xhr :post, :create, {raw: 'hello', image_sizes: {width: '100', height: '200'}}
|
||||
end
|
||||
|
||||
it "passes meta_data through" do
|
||||
|
Reference in New Issue
Block a user