File: ruby-tests.rb

package info (click to toggle)
ruby-powerbar 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 112 kB
  • sloc: ruby: 543; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# this gem has no tests at all, so run a small example as test

require 'powerbar'

total = 10
step = 1
text = "Small test"
p = PowerBar.new
j = 0
(0..total).step(step).each do |i|
  p.show({:msg => text, :done => i, :total => :unknown})
  j += 1
  sleep 0.1
end
p.close