Sha256: aa6799ea67ad03b19f8aa9b329d61fb0fcb968312c70b68d71925c6480b38734
Contents?: true
Size: 434 Bytes
Versions: 8
Compression:
Stored size: 434 Bytes
Contents
# encoding: utf-8 RSpec.describe TTY::ProgressBar, '#complete?' do let(:output) { StringIO.new('', 'w+') } it "checks for completness" do progress = TTY::ProgressBar.new("[:bar]", output: output, total: 3) completes = [] 3.times do completes << progress.complete? progress.advance end completes << progress.complete? expect(completes).to eq([ false, false, false, true ]) end end
Version data entries
8 entries across 8 versions & 1 rubygems