[DRE-commits] [SCM] ruby-moneta.git branch, master, updated. debian/0.6.0-4-16-g741fce5

Jérémy Bobbio lunar at debian.org
Wed Mar 27 15:23:39 UTC 2013


The following commit has been merged in the master branch:
commit c5d649d2b1ad57563770cd215053ee2ca634277e
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Mon Mar 25 16:34:14 2013 +0000

    Update test launching mechanism
    
    Upstream now use Rake to start its tests, so let's just follow that.
    
    As unfortunately neither 'memcached' nor 'dalli' gems are packaged in Debian,
    we also remove the part handling the test memcached server.

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index bf8a155..f8c48f9 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,7 +1,5 @@
-at_exit {
-  system("kill $(cat pid/memcached.pid)")
-}
-
-require 'rspec/autorun'
-system("install -o nobody -d pid ; memcached -d -u nobody -l localhost -P $(pwd)/pid/memcached.pid")
-Dir['spec/*_spec.rb'].each { |f| require f }
+require 'rake'
+app = Rake.application
+app.init
+app.load_rakefile
+app['test'].invoke

-- 
ruby-moneta.git



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