spec/utils_spec.rb in cloudinary-1.0.57 vs spec/utils_spec.rb in cloudinary-1.0.58

- old
+ new

@@ -102,14 +102,18 @@ result = Cloudinary::Utils.cloudinary_url("test", options) options.should == {:width=>100, :height=>100} result.should == "http://res.cloudinary.com/test123/image/upload/c_crop,h_100,w_100/test" end - it "should not pass width and height to html in case of fit or limit crop" do + it "should not pass width and height to html in case of fit, lfill or limit crop" do options = {:width=>100, :height=>100, :crop=>:limit} result = Cloudinary::Utils.cloudinary_url("test", options) options.should == {} result.should == "http://res.cloudinary.com/test123/image/upload/c_limit,h_100,w_100/test" + options = {:width=>100, :height=>100, :crop=>:lfill} + result = Cloudinary::Utils.cloudinary_url("test", options) + options.should == {} + result.should == "http://res.cloudinary.com/test123/image/upload/c_lfill,h_100,w_100/test" options = {:width=>100, :height=>100, :crop=>:fit} result = Cloudinary::Utils.cloudinary_url("test", options) options.should == {} result.should == "http://res.cloudinary.com/test123/image/upload/c_fit,h_100,w_100/test" end