SolutionCottage.com
Posted  18 Sep 2009 - 16:36:01

Category: Ruby on Rails


Use logger in a test in ruby on rails

Issue:
You want to use the logger.info or some other method of the logger in a test in ruby.

Solution:
Add this code to your 'test_helper.rb':

def logger
RAILS_DEFAULT_LOGGER
end








0 comments:








© SolutionCottage 2008-2011 9/24/2017 1:15:40 PM