spec/support/file_helper.rb in rubocop-0.20.1 vs spec/support/file_helper.rb in rubocop-0.21.0

- old
+ new

@@ -9,9 +9,11 @@ dir_path = File.dirname(file_path) FileUtils.makedirs dir_path unless File.exist?(dir_path) File.open(file_path, 'w') do |file| case content + when '' + # Write nothing. Create empty file. when String file.puts content when Array file.puts content.join("\n") end