spec/utils_spec.rb in cloudinary-1.0.24 vs spec/utils_spec.rb in cloudinary-1.0.25
- old
+ new
@@ -224,7 +224,14 @@
options = {:effect=>["sepia", 10]}
result = Cloudinary::Utils.cloudinary_url("test", options)
options.should == {}
result.should == "http://res.cloudinary.com/test123/image/upload/e_sepia:10/test"
end
+
+ it "should not pass width/height to html for overlay" do
+ options = {:overlay=>"text:hello", :height=>100, :width=>100}
+ result = Cloudinary::Utils.cloudinary_url("test", options)
+ options.should == {}
+ result.should == "http://res.cloudinary.com/test123/image/upload/h_100,l_text:hello,w_100/test"
+ end
end