[DRE-commits] [SCM] ruby-markaby.git branch, master, updated. upstream/0.7.2-6-ga138541

Cédric Boutillier cedric.boutillier at gmail.com
Fri Aug 26 11:24:21 UTC 2011


The following commit has been merged in the master branch:
commit 9e29620374909ec5d1d19c9fa9b1d37c2eb30b25
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Fri Aug 26 11:28:40 2011 +0200

    enable test suite (only v1.8)

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index eac5ce6..bd6b797 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,13 +1,3 @@
-# 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")
+# Some order has to be respected (sinatra/* before tilt_spec) to
+# ensure that there is no missing 'require' statement
+Dir['spec/markaby/**/*_{spec,test}.rb'].sort.each { |f| require f }
diff --git a/debian/rules b/debian/rules
index 3404fe8..7e410cb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,9 @@
 # Uncomment to ignore some test failures (but the tests will run anyway).
 # Valid values:
 #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems
+
+# missing test/unit for ruby 1.9.1
+export DH_RUBY_IGNORE_TESTS=ruby1.9.1 
 #
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec

-- 
ruby-markaby.git



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