1.9 test woe

E

Eric Hodel

porting a lib to 1.9, I was presented with this:

# somewhere it did a require 'test/unit'
# then later
uninitialized constant Test::Unit::AutoRunner

The fix was:

gem install test-unit
gem 'test-unit'
require 'test/unit'

ref:
http://rubyforge.org/pipermail/test-unit-tracker/2008-October/000012.html

However--is this a bug? Does this mean that minitest isn't totally
compatible?

It's not. The library you're porting is probably doing something
wrong if it needs AutoRunner. Where is the code?
 
C

Caleb Clausen

It came from running the http://github.com/coatl/sequence unit tests in
1.9
I'm working with the author on it, too.

Using ObjectSpace.each_object on the same line. Definitely a hack.
Sequence inherited that test from its predecessor, cursor, which was
written by someone else. I doubt those tests even work anymore.
(Please take note of the first 2 lines of that file...) I don't
understand or use them. I kept the old tests around because they
seemed to be doing some very clever things and I hoped to eventually
be able to port them to sequence's new api.... sorry for any
confusion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top