@_result object in Ruby 1.9.2

I was using @_result in Ruby 1.8.7 but it seems that doesn't exist
anymore and I badly need it for example to get the failures like this
failures=@_result.instance_variable_get(:@failures)

I was looking at http://apidock.com/ruby/ but I didn't find any
documentation

···

--
Posted via http://www.ruby-forum.com/.

i does not find any information about @_result

are you sure something like this exist in ruby?

···

--
Posted via http://www.ruby-forum.com/.

This is because test/unit was completely replaced in 1.9 by minitest. It appears you are relying on an implementation-specific variable that is no longer available.

You might find what you need in minitest/unit.rb.

-Justin

···

On 10/27/2011 02:11 PM, Mario Ruiz wrote:

I was using @_result in Ruby 1.8.7 but it seems that doesn't exist
anymore and I badly need it for example to get the failures like this
failures=@_result.instance_variable_get(:@failures)

I was looking at Ruby - APIdock but I didn't find any
documentation

Yes, but in Ruby 1.8.x

Hans Mackowiak wrote in post #1028968:

···

i does not find any information about @_result

are you sure something like this exist in ruby?

--
Posted via http://www.ruby-forum.com/\.

Alternatively, you could try using the test-unit gem, which a more
up-to-date version of the test-unit that was bundled in 1.8.x .

···

On 10/28/2011 10:19 AM, Justin Collins wrote:

On 10/27/2011 02:11 PM, Mario Ruiz wrote:

I was using @_result in Ruby 1.8.7 but it seems that doesn't
exist anymore and I badly need it for example to get the failures
like this failures=@_result.instance_variable_get(:@failures)

I was looking at Ruby - APIdock but I didn't find any
documentation

This is because test/unit was completely replaced in 1.9 by
minitest. It appears you are relying on an implementation-specific
variable that is no longer available.

You might find what you need in minitest/unit.rb.

-Justin