Skip to content

Commit 6af0aae

Browse files
authored
Merge pull request #2045 from gooddata/PHX-3194
cmdline-tool-tests(fix): Zip::File handling
2 parents f58b2ae + 4ef2fea commit 6af0aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gooddata/models/model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def upload_multiple_data(data, project_blueprint, options = { :client => GoodDat
166166

167167
dir = Dir.mktmpdir
168168
begin
169-
Zip::File.open("#{dir}/upload.zip", Zip::File::CREATE) do |zip|
169+
Zip::File.open("#{dir}/upload.zip", create: true) do |zip|
170170
# TODO: make sure schema columns match CSV column names
171171
zip.get_output_stream('upload_info.json') { |f| f.puts JSON.pretty_generate(manifest) }
172172

0 commit comments

Comments
 (0)