2008-12-30 02:57:06 +00:00
|
|
|
require File.dirname(__FILE__) + "/../../../../../lib/webrat"
|
|
|
|
|
2008-12-29 07:10:05 +00:00
|
|
|
Merb.logger.info("Loaded TEST Environment...")
|
|
|
|
Merb::Config.use { |c|
|
|
|
|
c[:testing] = true
|
|
|
|
c[:exception_details] = true
|
|
|
|
c[:log_auto_flush ] = true
|
|
|
|
# log less in testing environment
|
|
|
|
c[:log_level] = :error
|
|
|
|
|
|
|
|
#c[:log_file] = Merb.root / "log" / "test.log"
|
|
|
|
# or redirect logger using IO handle
|
|
|
|
c[:log_stream] = STDOUT
|
|
|
|
}
|