From d1b3f3c0804f2d1d2577f6dece45c746cfef45c4 Mon Sep 17 00:00:00 2001 From: 404 Date: Fri, 3 Aug 2012 09:49:07 +0800 Subject: [PATCH] fixed io spec --- spec/qiniu/rs/io_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/qiniu/rs/io_spec.rb b/spec/qiniu/rs/io_spec.rb index 9d8f558..ac80a4a 100755 --- a/spec/qiniu/rs/io_spec.rb +++ b/spec/qiniu/rs/io_spec.rb @@ -1,4 +1,4 @@ -# -*- encoding: utf-8 -*- +# Utils.-*- encoding: utf-8 -*- require 'spec_helper' require 'qiniu/rs/auth' @@ -46,7 +46,7 @@ module Qiniu context ".upload_with_token" do it "should works" do - upopts = {:scope => @bucket, :expires_in => 3600, :customer => 1} + upopts = {:scope => @bucket, :expires_in => 3600, :customer => "awhy.xu@gmail.com"} uptoken = Qiniu::RS.generate_upload_token(upopts) code, data = Qiniu::RS::IO.upload_with_token(uptoken, __FILE__, @bucket, @key, nil, nil, nil, true) code.should == 200