Add basename arg to Tempfile constructor
This commit is contained in:
1 parent
4b78f99f7a
commit
db1ab7d0b2
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user