This commit is contained in:
404
2012-08-13 23:42:35 +08:00
parent 6746a8eeeb
commit 3b58147e70
+3 -3
View File
@@ -45,7 +45,7 @@ module Qiniu
context ".set_separator" do
it "should works" do
result = Qiniu::RS::Pub.set_separator(@bucket, "-")
result = Qiniu::RS.set_separator(@bucket, "-")
result.should_not be_false
puts result.inspect
end
@@ -53,7 +53,7 @@ module Qiniu
context ".set_style" do
it "should works" do
result = Qiniu::RS::Pub.set_style(@bucket, "small.jpg", "imageMogr/auto-orient/thumbnail/!120x120r/gravity/center/crop/!120x120/quality/80")
result = Qiniu::RS.set_style(@bucket, "small.jpg", "imageMogr/auto-orient/thumbnail/!120x120r/gravity/center/crop/!120x120/quality/80")
result.should_not be_false
puts result.inspect
end
@@ -61,7 +61,7 @@ module Qiniu
context ".unstyle" do
it "should works" do
result = Qiniu::RS::Pub.unstyle(@bucket, "small.jpg")
result = Qiniu::RS.unstyle(@bucket, "small.jpg")
result.should_not be_false
puts result.inspect
end