fixed io spec

This commit is contained in:
404
2012-08-03 09:49:07 +08:00
parent 46eb6e3d58
commit d1b3f3c080
+2 -2
View File
@@ -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