[DRE-commits] [ruby-buff-extensions] 02/03: Use rake to run tests

Hleb Valoshka tsfgnu-guest at moszumanska.debian.org
Thu Jul 30 09:31:08 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-extensions.

commit 074f0cac65f853c186b19a4ed0eae889430f4dd6
Author: Hleb Valoshka <375gnu at gmail.com>
Date:   Thu Jul 30 12:13:33 2015 +0300

    Use rake to run tests
---
 debian/ruby-tests.rake | 8 ++++++++
 debian/ruby-tests.rb   | 4 ----
 2 files changed, 8 insertions(+), 4 deletions(-)

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-extensions.git



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