恢复 exif 接口的单元测试,可以覆盖 application/json; charset=utf-8 的解析测试。

This commit is contained in:
Liang Tao
2015-08-24 18:09:22 +08:00
parent f53dec3242
commit 52057ff062
+7 -3
View File
@@ -59,14 +59,18 @@ module Qiniu
end
end
=begin
context ".exif" do
it "should works" do
code, data = Qiniu::Fop::Image.exif(@source_image_url)
result = Qiniu.get(@bucket, 'gogopher.jpg')
result["url"].should_not be_empty
puts result.inspect
code, data, headers = Qiniu::Fop::Image.exif(result["url"])
code.should == 200
puts data.inspect
puts headers.inspect
end
end
=end
context ".mogrify_preview_url" do
it "should works" do