Sha256: 03cdc1acbc2f50be5cac019902b998fb2f64ec25dfdc71ef1e258363d76826c5

Contents?: true

Size: 342 Bytes

Versions: 17

Compression:

Stored size: 342 Bytes

Contents

require 'test_helper'
require 'stringio'
require 'ansi/progressbar'

testcase ANSI::Progressbar do

  unit :initialize do
    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
    true
  end

end

Version data entries

17 entries across 17 versions & 5 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-1.0.0 vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
swipe-rails-0.0.5 vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-1.0.0.beta3 vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-1.0.0.beta2 vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-1.0.0.beta vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-0.9.1.beta.3 vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-0.9.1.beta vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-0.9.0 vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
challah-0.8.3 vendor/bundle/gems/ansi-1.4.3/test/case_progressbar.rb
ansi-1.4.3 test/case_progressbar.rb
challah-0.6.1 vendor/bundle/gems/ansi-1.4.2/test/case_progressbar.rb
challah-0.6.0 vendor/bundle/gems/ansi-1.4.2/test/case_progressbar.rb
ansi-1.4.2 test/case_progressbar.rb
ansi-1.4.1 test/case_progressbar.rb
ansi-1.4.0 test/case_progressbar.rb