Fix media test case StringIO
This commit is contained in:
parent
a9d46c0359
commit
aa1eb64332
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue