[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Odd unit test error

Kenneth McDonald

10/21/2008 6:57:00 PM

On one of my unit test errors, I'm getting the error message:

NameError: uncaught throw 'invalid_test'

It's the part about "uncaught throw 'invalid_test'" that I don't get.
That sounds like an error from the unit test framework itself. Can
anyone shed any light on what this means?

Thanks,
Ken


1 Answer

Brian Candler

10/21/2008 9:20:00 PM

0

Kenneth McDonald wrote:
> On one of my unit test errors, I'm getting the error message:
>
> NameError: uncaught throw 'invalid_test'
>
> It's the part about "uncaught throw 'invalid_test'" that I don't get.
> That sounds like an error from the unit test framework itself. Can
> anyone shed any light on what this means?

Can you post the whole backtrace? And what code causes this error?

The only instance of it I can see in the source is test/unit/testcase.rb
line 43, which looks like either you're trying to invoke a test which
doesn't exist, or you're invoking a test with invalid arity like

def test_foo(x)
...
end

But normally the framework would never try to invoke such a method
anyway, so it's strange.

You could try running with ruby -w, might give you some more clues.
--
Posted via http://www.ruby-....