spec/utils_spec.rb in cloudinary-1.0.40 vs spec/utils_spec.rb in cloudinary-1.0.41
- old
+ new
@@ -322,6 +322,17 @@
options = {"border"=>"1px_solid_blue"}
result = Cloudinary::Utils.cloudinary_url("test", options)
options.should == {}
result.should == "http://res.cloudinary.com/test123/image/upload/bo_1px_solid_blue/test"
end
+
+ it "should support flags" do
+ options = {"flags"=>"abc"}
+ result = Cloudinary::Utils.cloudinary_url("test", options)
+ options.should == {}
+ result.should == "http://res.cloudinary.com/test123/image/upload/fl_abc/test"
+ options = {"flags"=>["abc", "def"]}
+ result = Cloudinary::Utils.cloudinary_url("test", options)
+ options.should == {}
+ result.should == "http://res.cloudinary.com/test123/image/upload/fl_abc.def/test"
+ end
end