[DRE-commits] [ruby-powerbar] 01/01: add a small test
Michael Moll
mmoll-guest at moszumanska.debian.org
Sat Nov 14 23:51:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
mmoll-guest pushed a commit to branch master
in repository ruby-powerbar.
commit 55a998167acbd9386346e1c8d3c4939c2d172006
Author: Michael Moll <Michael Moll kvedulv at kvedulv.de>
Date: Sun Nov 15 00:51:41 2015 +0100
add a small test
---
debian/ruby-tests.rb | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..5a24762
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-powerbar.git
More information about the Pkg-ruby-extras-commits
mailing list