test/test_out_s3.rb in fluent-plugin-s3-0.8.2 vs test/test_out_s3.rb in fluent-plugin-s3-0.8.3
- old
+ new
@@ -450,11 +450,11 @@
:key => "test",
:client => @s3_client))
s3obj.exists? { false }
tempfile = File.new(s3_local_file_path, "w")
- stub(Tempfile).new("s3-") { tempfile }
+ stub(Tempfile).new("s3-", nil) { tempfile }
s3obj.put(:body => tempfile,
:content_type => "application/x-gzip",
:storage_class => "STANDARD")
@s3_bucket.object(s3path) { s3obj }
@@ -482,10 +482,10 @@
s3obj = stub(Aws::S3::Object.new(:bucket_name => "test_bucket",
:key => "test",
:client => @s3_client))
tempfile = File.new(s3_local_file_path, "w")
- stub(Tempfile).new("s3-") { tempfile }
+ stub(Tempfile).new("s3-", nil) { tempfile }
s3obj.put(:body => tempfile,
:content_type => "application/x-gzip",
:storage_class => "STANDARD")
end