UnitTest Problem

I'm guessing that the calculation should be performed by the AR model,
rather than in the controller directly. If you did this then it'd be
very easy to unit test the model in isolation.

If you knew that the model was calculating correctly then you could
use a mock object in your functional controller test to make sure that
the calculate method is being called.

Chris