coldbox.system.testing.BaseHandlerTest: tests always fail when extending from it

Looking at build 3.0.0RC1, Build number: coldbox-buildID-201011081052

Attempting to extend the coldbox.system.testing.BaseHandlerTest component, and run tests, always fails with:

Application: The method $returns was not found in component (removedtoprotectheinnocent)\coldbox\system\testing\mock\web\MockController.cfc. Ensure that the method is defined, and that it is spelled correctly.
at (removedtoprotectheinnocent)\coldbox\system\testing\BaseHandlerTest.cfc: 48
at (removedtoprotectheinnocent)\mytest.cfc: 6

The fix is very simple, lines 48 and 49 of BaseHandlerTest.cfc should use the $results() method and not the, non-existent, $returns() method.

Is this a bug? Am I right to report this here? I found the ticket that was created for this functionality, but found no way to add to it (presuming only administrators can do that):

http://coldbox.assembla.com/spaces/coldbox/tickets/976-update-testing-so-we-can-do-unit-testing-of-handlers-standalone–meaning-targeted-testing–not-in—

Dominic

Thanks DOminic, this was reported and fixed on github. Will be out on the rc2 release.
Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Brilliant, thanks Luis. I’ll remember to search on GitHub next time :wink:

Dominic