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!
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!
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.