[DRE-commits] [SCM] ruby-temple.git branch, master, updated. upstream/0.6.2-20-gd28ce78
Jérémy Bobbio
lunar at debian.org
Sat Mar 16 08:33:40 UTC 2013
The following commit has been merged in the master branch:
commit 57ce9a32a3156b1f6c98ab32e5fc1a1b343d9f1b
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sat Mar 16 08:18:34 2013 +0000
Use upstream Rakefile to run tests instead of duplicating it
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
deleted file mode 100644
index 51ca282..0000000
--- a/debian/ruby-tests.rake
+++ /dev/null
@@ -1,25 +0,0 @@
-require 'rake/testtask'
-
-task :default => :test
-task :test do
- sh "bacon -Ilib -Itest --automatic --quiet"
-end
-
-#Rake::TestTask.new(:test) do |t|
-# t.libs << 'lib' << 'test'
-# t.pattern = 'test/**/test_*.rb'
-# t.verbose = false
-#end
-
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |t|
- t.libs << 'lib' << 'test'
- t.pattern = 'test/**/test_*.rb'
- t.verbose = false
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: gem install rcov"
- end
-end
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..f8c48f9
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,5 @@
+require 'rake'
+app = Rake.application
+app.init
+app.load_rakefile
+app['test'].invoke
--
ruby-temple.git
More information about the Pkg-ruby-extras-commits
mailing list