[DRE-commits] [ruby-cri] 04/07: Use the rake method to run the tests

Cédric Boutillier boutil at moszumanska.debian.org
Mon May 25 06:48:30 UTC 2015


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

boutil pushed a commit to branch master
in repository ruby-cri.

commit 667191e0ff7a2a5319cd979dfa48c03220ed9948
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon May 25 08:35:33 2015 +0200

    Use the rake method to run the tests
---
 debian/ruby-tests.rake | 13 +++++++++++++
 debian/ruby-tests.rb   |  5 -----
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..dd67c0f
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,13 @@
+# encoing: utf-8
+
+require 'rake/testtask'
+
+task :test_unit do
+  require './test/helper.rb'
+
+  FileList['./test/**/test_*.rb', './test/**/*_spec.rb'].each do |fn|
+    require fn
+  end
+end
+
+task :default => :test_unit
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index f8c48f9..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'rake'
-app = Rake.application
-app.init
-app.load_rakefile
-app['test'].invoke

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



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