I check the test framework using in the Rhodes, it seems straight forward to test model, but I wonder how to test for controller and view?
Since right now we put lots of logic in the controller, for example, right now we use asynchttp to send RESTful request to get data from server, then save them in the local database.
But how can we test this scenario:
1. I don't know how to write the test which support sending asnychttp request and process the result in the callback
2. each controller action will render a view, how to handle that?
For testing view, I assume it would be harder, so far I have no idea bout it.
Could you provide more detailed sample code for the unit test?