[DRE-commits] [SCM] ruby-roxml.git branch, master, updated. upstream/3.3.1-15-g8375e9a
Cédric Boutillier
boutil at debian.org
Thu Apr 18 15:51:47 UTC 2013
The following commit has been merged in the master branch:
commit c8c25ee85379281b8d49e307b97615312ee99bfc
Author: Cédric Boutillier <boutil at debian.org>
Date: Thu Apr 18 08:42:43 2013 +0200
use rake to run tests
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..95e5806
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,13 @@
+require 'rspec/core/rake_task'
+require 'rake/testtask'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = './spec/**/*_spec.rb'
+ spec.ruby_opts = "-Iexamples"
+end
+
+Rake::TestTask.new(:test) do |test|
+ test.test_files=Dir["./test/**/*_test.rb"]
+end
+
+task :default => [:spec, :test]
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 200d0d8..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-roxml.git
More information about the Pkg-ruby-extras-commits
mailing list