Fix media test case StringIO

This commit is contained in:
Steven Bazyl 2012-06-06 18:03:23 -07:00
parent a9d46c0359
commit aa1eb64332
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ describe Google::APIClient::UploadIO do
describe 'with StringIO' do describe 'with StringIO' do
before do before do
@content = "hello world" @content = "hello world"
@media = Google::APIClient::UploadIO.new(StringIO.new(@content), 'text/plain') @media = Google::APIClient::UploadIO.new(StringIO.new(@content), 'text/plain', 'test.txt')
end end
it 'should report the correct file length' do it 'should report the correct file length' do