you first need to make sure that logger is defined in test_helper. If
you have not done that, you need to add:
def logger
RAILS_DEFAULT_LOGGER
end
in your test_helper.rb
then in your unit or functional tests, you can add the logger message
as part of the setup method which runs once before every action in the
test
Def setup
logger.info ....
end
the setup method is within the class definition
I am assuming that you defined the get_method_name in test_helper as
well.
On Sep 10, 11:35 am, Joel Saltzmanjoelh <[EMAIL PROTECTED]
s.net> wrote:
> Frederick Cheung wrote:
> > stick it in the setup method.
>
> > Fred
>
> Would that just be
>
> setup logger.info("\n\n STARTING #{get_method_name} \n\n")
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---