[DRE-commits] [SCM] ruby-slim.git branch, master, updated. upstream/2.0.0_pre6-25-g36085fb

Jérémy Bobbio lunar at debian.org
Sat Mar 16 10:56:16 UTC 2013


The following commit has been merged in the master branch:
commit 23207eae7eab892fc725e768fce79cf3b935c9dd
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Mar 16 10:11:57 2013 +0000

    Run upstream tests by an equivalent to 'rake test'

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index eac5ce6..f8c48f9 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,13 +1,5 @@
-# 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")
+require 'rake'
+app = Rake.application
+app.init
+app.load_rakefile
+app['test'].invoke

-- 
ruby-slim.git



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