2005-01-15 21:26:54 +01:00
|
|
|
Dependencies.mechanism = :require
|
|
|
|
ActionController::Base.consider_all_requests_local = true
|
2005-03-25 20:11:41 +01:00
|
|
|
ActionController::Base.perform_caching = false
|
2005-01-15 21:26:54 +01:00
|
|
|
|
|
|
|
require 'fileutils'
|
|
|
|
FileUtils.mkdir_p(RAILS_ROOT + "/log")
|
|
|
|
|
|
|
|
unless defined? TEST_LOGGER
|
|
|
|
timestamp = Time.now.strftime('%Y%m%d%H%M%S')
|
|
|
|
log_name = RAILS_ROOT + "/log/instiki_test.#{timestamp}.log"
|
|
|
|
$stderr.puts "To see the Rails log:\n less #{log_name}"
|
|
|
|
|
|
|
|
TEST_LOGGER = ActionController::Base.logger = Logger.new(log_name)
|
2005-03-25 23:55:59 +01:00
|
|
|
INSTIKI_DEBUG_LOG = true unless defined? INSTIKI_DEBUG_LOG
|
2005-01-17 00:17:30 +01:00
|
|
|
|
|
|
|
WikiService.storage_path = RAILS_ROOT + '/storage/test/'
|
|
|
|
end
|