spec/utils_spec.rb in cloudinary-1.0.42 vs spec/utils_spec.rb in cloudinary-1.0.43
- old
+ new
@@ -321,9 +321,13 @@
result.should == "http://res.cloudinary.com/test123/image/upload/bo_5px_solid_rgb:ffaabbdd/test"
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"
+ options = {"border"=>"2"}
+ result = Cloudinary::Utils.cloudinary_url("test", options)
+ options.should == {:border=>"2"}
+ result.should == "http://res.cloudinary.com/test123/image/upload/test"
end
it "should support flags" do
options = {"flags"=>"abc"}
result = Cloudinary::Utils.cloudinary_url("test", options)