[DRE-commits] [ruby-mime-types] 04/04: Use ruby-tests.rb instead of ruby-test-files.yaml

Per Andersson avtobiff-guest at moszumanska.debian.org
Wed Jan 29 01:02:06 UTC 2014


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

avtobiff-guest pushed a commit to branch master
in repository ruby-mime-types.

commit 6753098882b1661d3b7d7ae9051fef7152858888
Author: Per Andersson <avtobiff at gmail.com>
Date:   Wed Jan 29 01:59:42 2014 +0100

    Use ruby-tests.rb instead of ruby-test-files.yaml
    
    Needed because tests require 'minitest_helper' from test directory.
    Hence, it is necessary to add test to LOADPATH.
---
 debian/ruby-test-files.yaml | 4 ----
 debian/ruby-tests.rb        | 2 ++
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index 96247f9..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
----
-- minitest
-- test/test_mime_type.rb
-- test/test_mime_types.rb
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..731c9cd
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,2 @@
+$: << 'lib' << 'test' << '.'
+Dir['test/test_*.rb'].each { |f| require f }

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



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