spec/utils_spec.rb in cloudinary-1.0.20 vs spec/utils_spec.rb in cloudinary-1.0.21
- old
+ new
@@ -182,7 +182,21 @@
options = {:default_image=>"default"}
result = Cloudinary::Utils.cloudinary_url("test", options)
options.should == {}
result.should == "http://res.cloudinary.com/test123/image/upload/d_default/test"
end
+
+ it "should support angle" do
+ options = {:angle=>"55"}
+ result = Cloudinary::Utils.cloudinary_url("test", options)
+ options.should == {}
+ result.should == "http://res.cloudinary.com/test123/image/upload/a_55/test"
+ end
+
+ it "should support overlay" do
+ options = {:overlay=>"text:hello"}
+ result = Cloudinary::Utils.cloudinary_url("test", options)
+ options.should == {}
+ result.should == "http://res.cloudinary.com/test123/image/upload/l_text:hello/test"
+ end
end