[DRE-commits] [gem2deb] 01/01: dh-make-ruby: look for test files recursively

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Feb 4 12:49:06 UTC 2015


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

terceiro pushed a commit to branch master
in repository gem2deb.

commit 7897d80d16c28841b6c03392bf98d653836362c9
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Wed Feb 4 10:47:48 2015 -0200

    dh-make-ruby: look for test files recursively
---
 debian/changelog            | 2 ++
 lib/gem2deb/dh_make_ruby.rb | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b1a450f..5a8d773 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ gem2deb (0.11) UNRELEASED; urgency=medium
   * SetupRbInstaller: always use the system copy of setup.rb
   * Gem2Deb#run: always print command lines being executed. This makes build
     logs much more detailed, what is a good thing.
+  * dh-make-ruby: look for test files recursively in generated
+    debian/ruby-tests.rake for both test/unit and rspec style tests.
 
  -- Antonio Terceiro <terceiro at debian.org>  Wed, 15 Oct 2014 16:16:04 -0300
 
diff --git a/lib/gem2deb/dh_make_ruby.rb b/lib/gem2deb/dh_make_ruby.rb
index 108f86a..fd839c1 100644
--- a/lib/gem2deb/dh_make_ruby.rb
+++ b/lib/gem2deb/dh_make_ruby.rb
@@ -313,7 +313,7 @@ module Gem2Deb
 require 'rspec/core/rake_task'
 
 RSpec::Core::RakeTask.new(:spec) do |spec|
-  spec.pattern = './spec/*_spec.rb'
+  spec.pattern = './spec/**/*_spec.rb'
 end
 
 task :default => :spec
@@ -345,7 +345,7 @@ task :default => :spec
 require 'gem2deb/rake/testtask'
 
 Gem2Deb::Rake::TestTask.new do |t|
-  t.test_files = FileList['test/*_test.rb']
+  t.test_files = FileList['test/**/*_test.rb']
 end
         EOF
         end

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



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