[DRE-commits] [capistrano] 04/07: d/ruby-tests: Use rake for spec tests

Sebastien Badia sbadia-guest at moszumanska.debian.org
Mon Apr 21 14:02:35 UTC 2014


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

sbadia-guest pushed a commit to branch master
in repository capistrano.

commit 463319acedba4370bdcd87bb5e8b6de732409f3c
Author: Sebastien Badia <seb at sebian.fr>
Date:   Mon Apr 21 15:20:36 2014 +0200

    d/ruby-tests: Use rake for spec tests
---
 debian/ruby-tests.rake | 6 ++++++
 debian/ruby-tests.rb   | 3 ---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..94f726f
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,6 @@
+require 'rspec/core/rake_task'
+
+desc "Run specs"
+task :default => :spec
+
+RSpec::Core::RakeTask.new(:spec)
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 94ebf56..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-system('true')
-$LOAD_PATH << 'test'
-Dir.glob('test/**/*_test.rb').each { |f| require f }

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



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