[DRE-commits] [ruby-minitest] 03/06: Suggests ruby-test-unit and add README.Debian to explain breaking of interpreter's test/unit (Closes: #772462)

Cédric Boutillier boutil at moszumanska.debian.org
Wed Apr 29 08:28:26 UTC 2015


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

boutil pushed a commit to branch master
in repository ruby-minitest.

commit 339b63cee033ee092da5f95c56b8a7cf54d59d95
Author: Cédric Boutillier <boutil at debian.org>
Date:   Wed Apr 29 10:10:04 2015 +0200

    Suggests ruby-test-unit and add README.Debian to explain breaking of interpreter's test/unit (Closes: #772462)
---
 debian/README.Debian | 23 +++++++++++++++++++++++
 debian/control       |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..e629eef
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,23 @@
+The version of minitest provided by this package breaks the test/unit version bundled with the Ruby interpreter.
+Requiring "test/unit" with the ruby-minitest installed causes error messages like:
+
+    Warning: you should require 'minitest/autorun' instead.
+    Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
+      /usr/lib/ruby/2.1.0/test/unit.rb:1:in `<top (required)>'
+    MiniTest::Unit::TestCase is now Minitest::Test. From /usr/lib/ruby/2.1.0/test/unit/testcase.rb:8:in `<module:Unit>'
+    /usr/lib/ruby/2.1.0/test/unit.rb:676:in `<class:Runner>': undefined method `_run_suite' for class `Test::Unit::Runner' (NameError)
+    	from /usr/lib/ruby/2.1.0/test/unit.rb:261:in `<module:Unit>'
+    	from /usr/lib/ruby/2.1.0/test/unit.rb:15:in `<module:Test>'
+    	from /usr/lib/ruby/2.1.0/test/unit.rb:7:in `<top (required)>'
+    	from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
+    	from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
+
+The problem is due to the fact that the interpreter's version of test/unit is a
+compatibility layer with the version of minitest bundled with the interpreter,
+which is hidden once the ruby-minitest package is installed. The version of
+this package is not compatible with this compatibility layer.
+To remedy this problem, install the ruby-test-unit package, providing a more
+complete version of test/unit. This will hide the interpreter's version of
+test/unit, and avoid to rely on minitest.
+
+ -- Cédric Boutillier <boutil at debian.org>  Wed, 29 Apr 2015 10:06:57 +0200
diff --git a/debian/control b/debian/control
index 6d76afd..a16ac6e 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Package: ruby-minitest
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
+Suggests: ruby-test-unit
 Description: Ruby test tools supporting TDD, BDD, mocking, and benchmarking
  minitest provides a complete suite of testing facilities supporting
  TDD, BDD, mocking, and benchmarking.

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



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