Ruby on Rails Monday, November 22, 2010

Hi,

I recently added "config.logger = Logger.new(STDOUT)" to my
development.rb and noticed that "rake test" suddenly prints SQL
queries to the console as well. I then added "config.logger =
Logger.new("/dev/null")" to test.rb, but that didn't help the issue.

Aren't the tests supposed to use the configuration from the test
environment?
Or should the test target be run with explicitly specifying
RAILS_ENV=test ?

Regards,
Alex

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment