[DRE-commits] [SCM] ruby-sinatra-contrib.git branch, master, updated. upstream/1.3.1-13-ge1e3940

Jérémy Bobbio lunar at debian.org
Sat Mar 16 07:57:47 UTC 2013


The following commit has been merged in the master branch:
commit c6466dddb0213748958f75b7b0b143673f5c66c0
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Fri Mar 15 00:20:12 2013 +0000

    Run tests using Rake to run RSpec

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..70a846d
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,5 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec)
+
+task :default => :spec
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index eac5ce6..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# 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")

-- 
ruby-sinatra-contrib.git



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