Sha256: 190388f79d081cde1fc6e1726e55456180d4016e4c52009dd116f40b2f43372f
Contents?: true
Size: 521 Bytes
Versions: 5
Compression:
Stored size: 521 Bytes
Contents
# encoding: utf-8 RSpec.describe TTY::ProgressBar, '#inspect' do it "inspects bar properties" do bar = described_class.new("downloading [:bar] :total", total: 30) expect(bar.inspect).to eq(%q{#<TTY::ProgressBar @format="downloading [:bar] :total", @current="0", @total="30", @width="30", @complete="=", @incomplete=" ", @interval="">}) end it "prints string format" do bar = described_class.new("downloading [:bar] :total", total: 30) expect(bar.to_s).to eq("downloading [:bar] :total") end end
Version data entries
5 entries across 5 versions & 1 rubygems