[DRE-commits] [ruby-prawn-table] 03/10: adapt rake method to run tests
Cédric Boutillier
boutil at moszumanska.debian.org
Tue Sep 16 21:24:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-prawn-table.
commit 4d8410be2107cbb66cc5580011af6bceb5e4368b
Author: Cédric Boutillier <boutil at debian.org>
Date: Tue Sep 16 09:36:29 2014 +0200
adapt rake method to run tests
---
debian/ruby-tests.rake | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index f4b3654..5924e30 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,13 +1,8 @@
-# FIXME
-# there's a spec/ directory in the upstream source.
-# The recommended way to run the RSpec suite is via a rake task.
-# The following commands are enough in many cases and can be adapted to other
-# situations.
-#
-# require 'rspec/core/rake_task'
-#
-# RSpec::Core::RakeTask.new(:spec) do |spec|
-# spec.pattern = './spec/*_spec.rb'
-# end
-#
-# task :default => :spec
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = './spec/*_spec.rb'
+ spec.rspec_opts = '-t ~unresolved'
+end
+
+task :default => :spec
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-prawn-table.git
More information about the Pkg-ruby-extras-commits
mailing list