[DRE-commits] [SCM] ruby-sequel.git branch, master, updated. upstream/3.30.0-3-g4a609dc

Dmitry Borodaenko angdraug at debian.org
Sat Dec 24 16:51:56 UTC 2011


The following commit has been merged in the master branch:
commit 4a609dcca3be461b34d2f13f4283e6f5207b804a
Author: Dmitry Borodaenko <angdraug at debian.org>
Date:   Sat Dec 24 19:51:44 2011 +0300

    run the tests (except database_spec.rb and adapters)

diff --git a/debian/control b/debian/control
index fcbdc9c..9126efc 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Dmitry Borodaenko <angdraug at debian.org>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.11~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.11~), ruby-rspec
 Standards-Version: 3.9.2
 #Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-sequel.git
 #Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-sequel.git;a=summary
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index eac5ce6..32e2ef7 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")
+$: << 'lib' << '.'
+require 'rspec'
+Dir['spec/**/*_spec.rb'].select {|f|
+  f !~ %r{database_spec.rb$} and f !~ %r{/adapters/}
+}.each {|f| require f }

-- 
ruby-sequel.git



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