Add basename arg to Tempfile constructor

This commit is contained in:
joker1007 committed 2016-01-07 03:39:53 +09:00
1 parent 4b78f99f7a
commit db1ab7d0b2
1 file changed
+1 -1
+1 -1
View File
@@ -131,7 +131,7 @@ RSpec.describe Google::Apis::Core::RawUploadCommand do
context('with Tempfile input') do
let(:file) do
temp_file = Tempfile.new
temp_file = Tempfile.new("tempfile")
temp_file.write("Hello world\n")
temp_file.rewind
temp_file