4e14ccc74d
Instiki now runs on the Rails 2.3.0 Candidate Release. Among other improvements, this means that it now automagically selects between WEBrick and Mongrel. Just run ./instiki --daemon
22 lines
543 B
Ruby
22 lines
543 B
Ruby
$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"
|
|
$:.unshift File.dirname(__FILE__) + "/../../actionpack/lib"
|
|
$:.unshift File.dirname(__FILE__) + "/../lib"
|
|
$:.unshift File.dirname(__FILE__) + "/../builtin/rails_info"
|
|
|
|
require 'rubygems'
|
|
require 'test/unit'
|
|
gem 'mocha', '>= 0.9.3'
|
|
require 'mocha'
|
|
require 'stringio'
|
|
require 'active_support'
|
|
require 'active_support/test_case'
|
|
|
|
def uses_mocha(test_name)
|
|
yield
|
|
end
|
|
|
|
if defined?(RAILS_ROOT)
|
|
RAILS_ROOT.replace File.dirname(__FILE__)
|
|
else
|
|
RAILS_ROOT = File.dirname(__FILE__)
|
|
end |