concept testing in category griffon
appears as: testing

This is an excerpt from Manning's book Griffon in Action.
But there’s an advantage to using closure properties over method definitions. When it comes to testing, it’s easier to overwrite an action implemented as a closure than it is to mock out a method.
Testing is one of those tasks that often get relegated to the end of the development cycle. Reasons vary, but typically it’s because writing testing code isn’t as fun as writing production code. The Griffon framework recognizes this and tries its best to make writing and executing test code as fun as doing the same with production code.