[DRE-commits] [ruby-rack-flash3] 03/03: Add not-yet-working rake task to run tests.

Ben Armstrong synrg at alioth.debian.org
Thu Aug 15 14:06:59 UTC 2013


This is an automated email from the git hooks/post-receive script.

synrg pushed a commit to branch master
in repository ruby-rack-flash3.

commit 8867d283cc71c20903096202bf3ce53cf2510642
Author: Ben Armstrong <synrg at debian.org>
Date:   Thu Aug 15 11:06:50 2013 -0300

    Add not-yet-working rake task to run tests.
---
 debian/ruby-tests.rake |   12 ++++++++++++
 debian/ruby-tests.rb   |   13 -------------
 2 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..79acbec
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,12 @@
+require 'rake'
+require 'rake/testtask'
+
+Rake::TestTask.new(:test) do |test|
+  test.libs << 'lib' << 'test'
+  test.pattern = 'test/**/test_*.rb'
+  test.verbose = true
+end
+
+#FIXME: not working yet
+#task :default => :test
+task :default
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index eac5ce6..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# FIXME
-# there's a spec/ or a test/ directory in the upstream source, but
-# no test suite was defined in the Gem specification. It would be
-# a good idea to define it here so the package gets tested at build time.
-# Examples:
-# $: << 'lib' << '.'
-# Dir['{spec,test}/**/*.rb'].each { |f| require f }
-#
-# require 'test/ts_foo.rb'
-#
-# require 'rbconfig'
-# ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-# exec("#{ruby} -I. test/runtests.rb")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rack-flash3.git



More information about the Pkg-ruby-extras-commits mailing list