From 3d40d4e9679a15234e52587c4b23c4ab340ddc3d Mon Sep 17 00:00:00 2001 From: longshanksmo Date: Fri, 19 Jul 2013 13:23:45 +0800 Subject: [PATCH] use new account & correct test code --- .travis.yml | 4 ++-- spec/qiniu/rs/rs_spec.rb | 24 ++++++++++++------------ spec/qiniu/rs_spec.rb | 20 ++++++++++---------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.travis.yml b/.travis.yml index 349a111..74bc42e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,5 +11,5 @@ rvm: - jruby-head - ree before_script: - - export QINIU_ACCESS_KEY=iN7NgwM31j4-BZacMjPrOQBs34UG1maYCAQmhdCV - - export QINIU_SECRET_KEY=6QTOr2Jg1gcZEWDQXKOGZh5PziC2MCV5KsntT70j + - export QINIU_ACCESS_KEY=LGRqJsjX7LAvtdtX6hhyxs861lS57HwnOQmJsOuX + - export QINIU_SECRET_KEY=g_OxhuN5iJ1O7BoA6YdXyF6zSszk34UZFKDfdIIW diff --git a/spec/qiniu/rs/rs_spec.rb b/spec/qiniu/rs/rs_spec.rb index 4ae3cad..3e3a785 100755 --- a/spec/qiniu/rs/rs_spec.rb +++ b/spec/qiniu/rs/rs_spec.rb @@ -136,18 +136,6 @@ module Qiniu end =end - context ".copy" do - it "should works" do - code, data = Qiniu::RS::RS.copy(@bucket, @key, @bucket, @key2) - code.should == 200 - puts data.inspect - - #code2, data2 = Qiniu::RS::RS.stat(@bucket, @key2) - #code2.should == 200 - #puts data2.inspect - end - end - context ".move" do it "should works" do code, data = Qiniu::RS::RS.move(@bucket, @key, @bucket, @key2) @@ -164,6 +152,18 @@ module Qiniu end end + context ".copy" do + it "should works" do + code, data = Qiniu::RS::RS.copy(@bucket, @key, @bucket, @key2) + code.should == 200 + puts data.inspect + + #code2, data2 = Qiniu::RS::RS.stat(@bucket, @key2) + #code2.should == 200 + #puts data2.inspect + end + end + context ".delete" do it "should works" do code, data = Qiniu::RS::RS.delete(@bucket, @key) diff --git a/spec/qiniu/rs_spec.rb b/spec/qiniu/rs_spec.rb index 6242c89..fa2cdb3 100755 --- a/spec/qiniu/rs_spec.rb +++ b/spec/qiniu/rs_spec.rb @@ -319,16 +319,6 @@ module Qiniu end end - context ".copy" do - it "should works" do - result = Qiniu::RS.copy(@bucket, @key, @bucket, @key2) - result.should_not be_false - - #result2 = Qiniu::RS.stat(@bucket, @key2) - #result2.should_not be_false - end - end - context ".move" do it "should works" do result = Qiniu::RS.move(@bucket, @key, @bucket, @key2) @@ -342,6 +332,16 @@ module Qiniu end end + context ".copy" do + it "should works" do + result = Qiniu::RS.copy(@bucket, @key, @bucket, @key2) + result.should_not be_false + + #result2 = Qiniu::RS.stat(@bucket, @key2) + #result2.should_not be_false + end + end + context ".delete" do it "should works" do result = Qiniu::RS.delete(@bucket, @key)