[DRE-commits] [ruby-kitchen-vagrant] 05/06: Run tests with plain ruby instead of rake

Hleb Valoshka tsfgnu-guest at moszumanska.debian.org
Thu Jul 9 16:36:06 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-kitchen-vagrant.

commit fa559749c37b8c8dc0a59a45c621f88df05c80b5
Author: Hleb Valoshka <375gnu at gmail.com>
Date:   Thu Jul 9 11:33:01 2015 +0300

    Run tests with plain ruby instead of rake
---
 debian/control         | 1 -
 debian/ruby-tests.rake | 7 -------
 debian/ruby-tests.rb   | 8 ++++++++
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/debian/control b/debian/control
index 21ee91d..27e75ce 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,6 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
 Uploaders: Hleb Valoshka <375gnu at gmail.com>
 Build-Depends: debhelper (>= 7.0.50~),
                gem2deb,
-               rake,
                ruby-rspec,
                test-kitchen (>= 1.4)
 Standards-Version: 3.9.6
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
deleted file mode 100644
index dcc1601..0000000
--- a/debian/ruby-tests.rake
+++ /dev/null
@@ -1,7 +0,0 @@
-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
new file mode 100644
index 0000000..a3a105d
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,8 @@
+require "rspec/autorun"
+$LOAD_PATH.delete(File.expand_path("../../lib",__FILE__))
+
+RSpec.configure do |c|
+  c.filter_run_excluding :unresolved => true
+end
+
+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-kitchen-vagrant.git



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