From dfbb1bef5e337c62e2fbd2e038e6fc822a952e48 Mon Sep 17 00:00:00 2001 From: Piotr Murach Date: Thu, 31 Dec 2020 13:23:43 +0100 Subject: [PATCH] Fix test encoding issue on Windows platform --- spec/unit/bar_format_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/bar_format_spec.rb b/spec/unit/bar_format_spec.rb index 73d4b56..3656144 100644 --- a/spec/unit/bar_format_spec.rb +++ b/spec/unit/bar_format_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true +# frozen_string_literal: false RSpec.describe TTY::ProgressBar, ":bar_format" do - let(:output) { StringIO.new } + let(:output) { StringIO.new("", "w+") } let(:formats) { TTY::ProgressBar::Formats::FORMATS } TTY::ProgressBar::Formats::FORMATS.each_key do |format|