Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6546 (closed defect: duplicate)

Opened 3 years ago

Last modified 3 years ago

Add logger to Test::Unit::TestCase

Reported by: esad Assigned to: David
Priority: normal Milestone: 1.x
Component: ActiveSupport Version:
Severity: normal Keywords:
Cc:

Description

Hi,

Why not add something like

  def logger
    RAILS_DEFAULT_LOGGER
  end

to Test::Unit::TestCase

which would allow you to write logger.info('test executing') instead of RAILS_DEFAULT_LOGGER.info(...), which is a useful shortcut considering that logging statements usually appear more than once in a file.

Change History

01/16/07 06:55:29 changed by dcmanges

  • status changed from new to closed.
  • resolution set to duplicate.