Sha256: 5bfd35fc8efdf10b4ab2614088ba24773869f5615c3252d4649f5d096d198121
Contents?: true
Size: 351 Bytes
Versions: 6
Compression:
Stored size: 351 Bytes
Contents
require 'test/unit' require 'stringio' require 'ansi/progressbar' class TC_ANSI_Progressbar < Test::Unit::TestCase def test_progressbar stio = StringIO.new pbar = ANSI::Progressbar.new("Test Bar", 10, stio) do |b| b.style(:title => [:red], :bar=>[:blue]) end 10.times do |i| sleep 0.1 pbar.inc end end end
Version data entries
6 entries across 6 versions & 1 rubygems