webrat/spec/integration/merb/config/environments/test.rb

15 lines
413 B
Ruby
Raw Permalink Normal View History

require File.dirname(__FILE__) + "/../../../../../lib/webrat"
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
}