spec/utils_spec.rb in cloudinary-1.0.71 vs spec/utils_spec.rb in cloudinary-1.0.72

- old
+ new

@@ -458,6 +458,11 @@ expected = "http://res.cloudinary.com/test123/image/fetch/s--_GAUclyB--/v1234/http://google.com/path/to/image.png" actual = Cloudinary::Utils.cloudinary_url("http://google.com/path/to/image.png", :type => "fetch", :version => 1234, :sign_url => true) actual.should == expected end + + it "should correctly sign_request" do + params = Cloudinary::Utils.sign_request({:public_id=>"folder/file", :version=>"1234"}) + params.should == {:public_id=>"folder/file", :version=>"1234", :signature=>"7a3349cbb373e4812118d625047ede50b90e7b67", :api_key=>"1234"} + end end