Can I intercept "instance variable XYZ not initialized"

L

Larry Fast

I'm working with Test::Unit and want to reduce the amount of noise in
the results. One annoying problem with negative test cases is "warning:
instance variable XYZ not initialized"

I may simply be doing things wrong but it seems that throw-catch and
begin-rescue aren't capable of 'catching' this message.

I'd rather avoid post-processing the output. First because it decouples
and duplicates the references. Secondly because I don't want to mask
legitimate errors.

Suggestions?
Larry
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top