Skip to content

Commit

Permalink
Fix the instantiation without a format string test to work on edge Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Nov 10, 2024
1 parent 58a66a6 commit b959df8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/new_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b959df8

Please sign in to comment.