mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-09 04:46:10 +10:00
恢复 exif 接口的单元测试,可以覆盖 application/json; charset=utf-8 的解析测试。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user