Add basename arg to Tempfile constructor

This commit is contained in:
joker1007 2016-01-07 03:39:53 +09:00
parent 4b78f99f7a
commit db1ab7d0b2
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ RSpec.describe Google::Apis::Core::RawUploadCommand do
context('with Tempfile input') do context('with Tempfile input') do
let(:file) do let(:file) do
temp_file = Tempfile.new temp_file = Tempfile.new("tempfile")
temp_file.write("Hello world\n") temp_file.write("Hello world\n")
temp_file.rewind temp_file.rewind
temp_file temp_file