views:

75

answers:

1

How come commands like puts and print don't show up in the console when running ActiveSupport::TestCase tests?

Makes it very hard to debug if I can't outputs some inspections in a couple of methods.

Thanks!

+1  A: 

You can use the rails logger to see your output:

Rails::logger.debug "Interesting stuff"

Run tail -f log/test.log on the command line (from the project's root in a separate Terminal tab or window) to see the results.

Baldu
Yep, worked like a charm!
Alexandre