spec/utils_spec.rb in cloudinary-1.2.0 vs spec/utils_spec.rb in cloudinary-1.2.1
- old
+ new
@@ -217,9 +217,13 @@
expect(["test", { :width => "auto:breakpoints_100_1900_20_15", :crop => :fill }])
.to produce_url("#{upload_path}/c_fill,w_auto:breakpoints_100_1900_20_15/test")
expect(["test", { :width => "auto:breakpoints:json", :crop => :fill }])
.to produce_url("#{upload_path}/c_fill,w_auto:breakpoints:json/test")
end
+ it 'should support oh,ow' do
+ expect(["test", {:width => "ow", :height => "oh", :crop => :crop}])
+ .to produce_url("#{upload_path}/c_crop,h_oh,w_ow/test")
+ end
end
it "should use x, y, radius, prefix, gravity and quality from options" do
expect(["test", { :x => 1, :y => 2, :radius => 3, :gravity => :center, :quality => 0.4, :prefix => "a" }])
.to produce_url("#{upload_path}/g_center,p_a,q_0.4,r_3,x_1,y_2/test")