[DRE-commits] [ruby-buff-ruby-engine] 03/04: Use rake to run tests
Hleb Valoshka
tsfgnu-guest at moszumanska.debian.org
Wed Jul 29 09:28:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
tsfgnu-guest pushed a commit to branch master
in repository ruby-buff-ruby-engine.
commit d24bf5cd118fa113f07f3c417c3abaaebb280e60
Author: Hleb Valoshka <375gnu at gmail.com>
Date: Wed Jul 29 12:02:37 2015 +0300
Use rake to run tests
---
debian/control | 2 +-
debian/ruby-tests.rake | 8 ++++++++
debian/ruby-tests.rb | 4 ----
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/debian/control b/debian/control
index d646246..2b78207 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
Priority: optional
Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Uploaders: Miguel Landaeta <nomadium at debian.org>
-Build-Depends: debhelper (>= 9~), gem2deb (>= 0.7.5~), ruby-rspec, spork
+Build-Depends: debhelper (>= 9~), gem2deb (>= 0.7.5~), ruby-rspec, spork, rake
Standards-Version: 3.9.6
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-buff-ruby-engine.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-buff-ruby-engine.git
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..b48f805
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,8 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = './spec/**/*_spec.rb'
+end
+
+task :default => :spec
+
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 99b4155..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-require 'rspec'
-$: << 'lib' << '.'
-
-RSpec::Core::Runner.run ['spec']
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-buff-ruby-engine.git
More information about the Pkg-ruby-extras-commits
mailing list