Write to Rails test log
Problem: You want to write to the Rails test log from within a TestCase.
Solution: In Rails 3:
::Rails.logger.warn 'foobar'
Rails 2:
RAILS_DEFAULT_LOGGER.warn 'foobar'
Useful For: Viewing debugging output and standard log output (eg. AREL) in the same file.
More Information: