Fix media test case StringIO
authorSteven Bazyl <sqrrrl@gmail.com>
Thu, 7 Jun 2012 01:03:23 +0000 (18:03 -0700)
committerSteven Bazyl <sqrrrl@gmail.com>
Thu, 7 Jun 2012 01:03:23 +0000 (18:03 -0700)
spec/google/api_client/media_spec.rb

index 36bad5bfc9fc0c12ad248fe623fe16d4092dd107..e914da46d7ff96e6f89e12260f79543d30b02048 100644 (file)
@@ -44,7 +44,7 @@ describe Google::APIClient::UploadIO do
   describe 'with StringIO' do
     before do
       @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
 
     it 'should report the correct file length' do