By Sarah | September 13, 2009
We ran into an issue last week where our XML APIs were returning HTML under certain error conditions, rather than the expected XML. Our solution was to add the following code to the ApplicationController:
rescue_from Exception do |exception|
respond_to do |format|
format.xml { render [...]
By Sarah | September 5, 2009
In my recent explorations of how to teach test-driven development (TDD), I have found a number of people writing about using testing for learning. First I read how Ross Niemi explored the assert method by testing it. He talked about feeling that he would like to prove that he understood the syntax. Then I [...]