[DRE-commits] [ruby-nio4r] 01/03: Fix the way to unit tests
Miguel Landaeta
nomadium at moszumanska.debian.org
Fri Aug 1 18:59:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
nomadium pushed a commit to branch master
in repository ruby-nio4r.
commit 25cca7fc4b1f28d6f7d7114bd26b44604b97e25d
Author: Miguel Landaeta <nomadium at debian.org>
Date: Fri Aug 1 15:53:06 2014 -0300
Fix the way to unit tests
---
debian/ruby-tests.rake | 7 +++++++
debian/ruby-tests.rb | 4 ----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..89a753d
--- /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 9f195b8..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-require 'rspec'
-$: << 'lib' << 'ext/nio4r' << '.'
-
-RSpec::Core::Runner.run ['spec']
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-nio4r.git
More information about the Pkg-ruby-extras-commits
mailing list