allow users to specify thumbnail size
This commit is contained in:
parent
191dc77482
commit
cd4cda5b4c
11 changed files with 47 additions and 69 deletions
spec/controllers
|
@ -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 a new issue