Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /usr/share/doc/ruby-minitest/ |
Upload File : |
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@debian.org> Wed, 29 Apr 2015 10:06:57 +0200