@_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
[email protected]_result.instance_variable_get(:@failures)

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

i does not find any information about @_result

are you sure something like this exist in ruby?

Yes, but in Ruby 1.8.x

Hans M. wrote in post #1028968:

i does not find any information about @_result

are you sure something like this exist in ruby?

On 10/28/2011 10:19 AM, Justin C. wrote:

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

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/27/2011 02:11 PM, Mario R. 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
[email protected]_result.instance_variable_get(:@failures)

I was looking at http://apidock.com/ruby/ 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs