[DRE-commits] [ruby-timers] 01/05: use the rake method for tests, exclude performance_spec

Cédric Boutillier boutil at moszumanska.debian.org
Tue May 12 21:53:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-timers.

commit 09a2cfa3d0279d49a1e2a7958dc704e523571bfa
Author: Cédric Boutillier <boutil at debian.org>
Date:   Tue May 12 22:58:06 2015 +0200

    use the rake method for tests, exclude performance_spec
---
 debian/ruby-tests.rake | 7 +++++++
 debian/ruby-tests.rb   | 3 ---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..4275ec8
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new do |spec|
+  spec.exclude_pattern = "spec/performance_spec.rb"
+end
+
+task :default => :spec
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index f41e445..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-#$: << 'lib' << 'spec' << '.'
-#Dir['spec/**/*.rb'].each { |f| require f }
-exec("rake")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-timers.git



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