From b959df89c7ec7757f8323238204da36dfab7519d Mon Sep 17 00:00:00 2001 From: Piotr Murach Date: Sun, 10 Nov 2024 14:39:37 +0100 Subject: [PATCH] Fix the instantiation without a format string test to work on edge Ruby --- spec/unit/new_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/unit/new_spec.rb b/spec/unit/new_spec.rb index 0e6417e..8edb1a9 100644 --- a/spec/unit/new_spec.rb +++ b/spec/unit/new_spec.rb @@ -3,12 +3,12 @@ RSpec.describe TTY::ProgressBar, ".new" do let(:output) { StringIO.new } - it "fails to initialize without formatting string" do + it "fails to initialize without a bar formatting string" do expect { - TTY::ProgressBar.new(output: output) + TTY::ProgressBar.new(total: 10) }.to raise_error( ArgumentError, - /Expected bar formatting string, got `{:output=>#{output}}` instead\./ + /Expected bar formatting string, got `{:?total(=>|: )10}` instead\./ ) end