allow users to specify thumbnail size

This commit is contained in:
Régis Hanol
2013-09-27 10:55:50 +02:00
parent 191dc77482
commit cd4cda5b4c
11 changed files with 47 additions and 69 deletions

View File

@ -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