spec/utils_spec.rb in cloudinary-1.0.22 vs spec/utils_spec.rb in cloudinary-1.0.23

- old
+ new

@@ -197,6 +197,20 @@ result = Cloudinary::Utils.cloudinary_url("test", options) options.should == {} result.should == "http://res.cloudinary.com/test123/image/upload/l_text:hello/test" end + it "should support format for fetch urls" do + options = {:format=>"jpg", :type=>:fetch} + result = Cloudinary::Utils.cloudinary_url("http://cloudinary.com/images/logo.png", options) + options.should == {} + result.should == "http://res.cloudinary.com/test123/image/fetch/f_jpg/http://cloudinary.com/images/logo.png" + end + + it "should support effects" do + options = {:effects=>"sepia"} + result = Cloudinary::Utils.cloudinary_url("test", options) + options.should == {} + result.should == "http://res.cloudinary.com/test123/image/upload/e_sepia/test" + end + end