I’m trying to output some info to see what’s happening in a controller
during functional tests.
Problem: ‘print’ only works in the test code, but not in the production
code that’s being called by the tests.
Example:
In FooControllerTest:
def test_list
print "1: starting" <<----- WORKS FINE
get :list
end
In FooController
def list
print "2: inside" <<----- DOESN'T WORK
logger.error "2: inside too" <<----- DOESN'T WORK : nothing