Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail with ruby >= 2.1.5 #24

Open
opoplawski opened this issue Apr 10, 2015 · 2 comments
Open

Tests fail with ruby >= 2.1.5 #24

opoplawski opened this issue Apr 10, 2015 · 2 comments

Comments

@opoplawski
Copy link

Trying to build on Fedora 21 with ruby 2.1.5, tests fail with:

Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
  /usr/share/ruby/test/unit.rb:1:in `<top (required)>'
  rgen_test.rb:3:in `<main>'
MiniTest::Unit::TestCase is now Minitest::Test. From /usr/share/ruby/test/unit/testcase.rb:8:in `<module:Unit>'
/usr/share/ruby/test/unit.rb:676:in `<class:Runner>': undefined method `_run_suite' for class `Test::Unit::Runner' (NameError)
        from /usr/share/ruby/test/unit.rb:261:in `<module:Unit>'
        from /usr/share/ruby/test/unit.rb:15:in `<module:Test>'
        from /usr/share/ruby/test/unit.rb:7:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from rgen_test.rb:3:in `<main>'

With ruby 2..2.1 fails with:

+ ruby rgen_test.rb
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- test/unit (LoadError)
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
        from test/rgen_test.rb:3:in `<main>'
@hemalbavisi
Copy link

Is there any update on above issue? I am also facing similar kind of problem with ruby 2.2.0

@duboviy
Copy link

duboviy commented Feb 10, 2017

Try with minitest 4.7.5 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants