saljamil wrote:
> 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]

yeah I did the helper stuff. I didnt realize i could create a setup 
method and that would automatically run before the test methods. Thanks!
-- 
Posted via http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to