mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-21 10:47:05 +10:00
rs spec
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user