spec/support/file_helpers.rb in omnibus-5.4.0 vs spec/support/file_helpers.rb in omnibus-5.5.0

- old
+ new

@@ -29,10 +29,10 @@ FileUtils.mkdir_p(File.dirname(path)) FileUtils.rm(path) if File.exist?(path) if block - File.open(path, 'wb') { |f| f.write(block.call) } + File.open(path, "wb") { |f| f.write(yield) } else FileUtils.touch(path) end path