Sha256: 34ad20e2732501bd89afdca82228baffb9783e17688f93e586b8392173455207
Contents?: true
Size: 403 Bytes
Versions: 4
Compression:
Stored size: 403 Bytes
Contents
RSpec.describe TTY::ProgressBar, ':bar token' do let(:output) { StringIO.new('', 'w+') } it "animates bar" do progress = TTY::ProgressBar.new("[:bar]", output: output, total: 5) 5.times { progress.advance } output.rewind expect(output.read).to eq([ "\e[1G[= ]", "\e[1G[== ]", "\e[1G[=== ]", "\e[1G[==== ]", "\e[1G[=====]\n" ].join) end end
Version data entries
4 entries across 4 versions & 1 rubygems