[DRE-commits] [ruby-fakefs] 02/03: Replace ruby-tests.rb by ruby-tests.rake
Sebastian Boehm
sometimesfood-guest at moszumanska.debian.org
Fri May 1 18:43:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
sometimesfood-guest pushed a commit to branch master
in repository ruby-fakefs.
commit f3aea35ffc1d178506871efe7db3aa2edb22fe14
Author: Sebastian Boehm <sebastian at sometimesfood.org>
Date: Fri May 1 20:28:12 2015 +0200
Replace ruby-tests.rb by ruby-tests.rake
---
debian/changelog | 1 +
debian/ruby-tests.rake | 13 +++++++++++++
debian/ruby-tests.rb | 2 --
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 7d541cc..0b940bf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ ruby-fakefs (0.6.7-1) unstable; urgency=low
* Add minitest build dependency
* Remove minitest-rg dependency in test helper
* Add Testsuite header to debian/control
+ * Replace debian/ruby-tests.rb by debian/ruby-tests.rake
-- Sebastian Boehm <sebastian at sometimesfood.org> Thu, 30 Apr 2015 20:41:08 +0200
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..ddc6f61
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,13 @@
+require 'rake/testtask'
+# require 'rspec/core/rake_task'
+
+Rake::TestTask.new do |t|
+ t.libs << 'test'
+ t.test_files = FileList['test/**/*test.rb']
+end
+
+# # TODO: run rspec tests once ruby-rspec is upgraded to rspec 3
+# desc 'Run specs'
+# RSpec::Core::RakeTask.new
+
+task default: [:test]
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index d54b27f..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-$: << 'test' << 'lib'
-Dir['test/**/*_test.rb'].each { |file| require File.expand_path(file) }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fakefs.git
More information about the Pkg-ruby-extras-commits
mailing list