test/test_helper.rb in download_tv-2.2.2 vs test/test_helper.rb in download_tv-2.3.0
- old
+ new
@@ -2,10 +2,10 @@
require 'download_tv'
require 'minitest/autorun'
def create_dummy_config(in_path, config = {})
config[:version] = DownloadTV::VERSION unless config[:version]
- File.open(in_path, 'wb') { |f| Marshal.dump(config, f) }
+ File.write(in_path, JSON.generate(config))
end
def run_silently
previous_stdout = $stdout
$stdout = StringIO.new