[DRE-commits] [ruby-redis] 02/05: use ruby-tests.rake
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Apr 24 05:24:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-redis.
commit 1dce2f919d5c33b3c2271789e30ed18dd0acb406
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Apr 24 09:59:55 2014 +0530
use ruby-tests.rake
---
debian/ruby-tests.rake | 8 ++++++++
debian/ruby-tests.rb | 13 -------------
2 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..0e7aeb8
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,8 @@
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.test_files = FileList["test/**/*_test.rb"]
+ test.verbose = false
+ test.warning = false
+end
+
+task :default => [:test]
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-redis.git
More information about the Pkg-ruby-extras-commits
mailing list