[DRE-commits] [ruby-redcloth] 01/03: fix recipe to run tests during build.

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Feb 21 14:16:41 UTC 2015


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

terceiro pushed a commit to branch master
in repository ruby-redcloth.

commit 48acddfd721d2f1f87f7b8da297c1bafe0619523
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Feb 7 21:54:52 2015 -0200

    fix recipe to run tests during build.
---
 debian/changelog       | 8 ++++++++
 debian/ruby-tests.rake | 7 +++++++
 debian/ruby-tests.rb   | 3 ---
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d45107a..af11040 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ruby-redcloth (4.2.9-4) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * debian/ruby-tests.rb → debian/ruby-tests.rake: fix recipe to run tests
+    during build.
+
+ -- Antonio Terceiro <terceiro at debian.org>  Sat, 07 Feb 2015 20:54:29 -0200
+
 ruby-redcloth (4.2.9-3) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..dcc1601
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+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 3bc13b4..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-$: << 'spec'
-require 'rspec/core'
-Dir['spec/**/*_spec.rb'].each { |f| require f }

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



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