-
Notifications
You must be signed in to change notification settings - Fork 566
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
Exception requiring standard library Test::Unit with Minitest v5 #283
Comments
test/unit and minitest 5 are not compatible, nor will they be. ETA: at least, not by my hand. |
Haven't heard back. Did you figure it out? |
This is fixed by specifying that you want the 4 series: gem "minitest", "~> 4.0" |
Sorry for slow reply - I've been busy with client work. The fix you suggest won't solve my problem, because I want to use the latest MiniTest. It looks like I'll have to have a closer look at whether I can change the Mocha tests to work a different way. |
I have the same problem (with ruby 1.9.3) without explicitly requiring I'm just using Rails, and Rails itself requires test/unit, at least in version 3.2. Does it mean that Rails 3.2 and minitest 5 are incompatible? |
as said above: "test/unit and minitest 5 are not compatible, nor will they be." |
ETA: you're welcome to not use test/unit. You can look at minitest-rails or other plugins and use minitest directly. |
Minitest v5 doesn't work with test/unit: <minitest/minitest#283>.
I see the following exceptions when using
require 'test/unit'
with Minitest v5 in the bundle:Ruby 2.0.0-p0
Ruby 1.9.3-p362
See this simple test project for details on how to reproduce.
I realise this may be an unusual situation, but I ran into it when trying to get the Mocha tests to work and it feels wrong that these exceptions are raised.
I'm just about to try the same thing with the latest version of the
test-unit
gem to see whether that resolves the problem.The text was updated successfully, but these errors were encountered: