[DRE-commits] [ruby-color] 03/06: Update how tests were executed in the package

Lucas Moura lucasmoura-guest at moszumanska.debian.org
Sat Mar 5 21:52:58 UTC 2016


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

lucasmoura-guest pushed a commit to branch master
in repository ruby-color.

commit 53612d3f9c6560181a4ac53cfae65140db23e212
Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>
Date:   Sat Mar 5 18:37:49 2016 -0300

    Update how tests were executed in the package
---
 debian/changelog       | 1 +
 debian/ruby-tests.rake | 6 ++++++
 debian/ruby-tests.rb   | 3 ---
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 86771cf..5869d92 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ ruby-color (1.8-1) UNRELEASED; urgency=medium
 
   * Team upload.
   * New upstream version
+  * Update how tests were executed in the package
 
  -- Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>  Sat, 05 Mar 2016 18:30:50 -0300
 
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..583b0ca
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,6 @@
+require 'gem2deb/rake/testtask'
+
+Gem2Deb::Rake::TestTask.new do |t|
+  t.libs = ['test']
+  t.test_files = FileList['test/test_*.rb']
+end
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 2b26d5a..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-$: << "test/"
-
-Dir.glob("test/test_*.rb").each { |f| require f }

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



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