2009-06-30 20:26:46 -04:00
|
|
|
ORIG_ARGV = ARGV.dup
|
|
|
|
|
2009-10-20 19:33:54 -04:00
|
|
|
root = File.expand_path('../../..', __FILE__)
|
|
|
|
begin
|
|
|
|
require "#{root}/vendor/gems/environment"
|
|
|
|
rescue LoadError
|
|
|
|
%w(activesupport activemodel activerecord actionpack actionmailer activeresource railties).each do |lib|
|
|
|
|
$:.unshift "#{root}/#{lib}/lib"
|
2009-10-19 22:22:23 -04:00
|
|
|
end
|
|
|
|
end
|
2009-09-01 11:05:17 -04:00
|
|
|
|
2009-10-20 19:33:54 -04:00
|
|
|
$:.unshift "#{root}/railties/builtin/rails_info"
|
2006-09-02 20:18:31 -04:00
|
|
|
|
2009-02-03 21:25:37 -05:00
|
|
|
require 'stringio'
|
2006-09-02 20:18:31 -04:00
|
|
|
require 'test/unit'
|
2009-10-16 15:49:39 -04:00
|
|
|
require 'fileutils'
|
2009-02-03 21:25:37 -05:00
|
|
|
|
2007-03-01 18:29:56 -05:00
|
|
|
require 'active_support'
|
2009-10-15 17:50:02 -04:00
|
|
|
require 'active_support/core_ext/logger'
|
2008-11-24 05:25:28 -05:00
|
|
|
require 'active_support/test_case'
|
2006-09-02 20:18:31 -04:00
|
|
|
|
2009-09-25 23:54:41 -04:00
|
|
|
require 'action_controller'
|
2009-10-16 15:49:39 -04:00
|
|
|
require 'rails'
|
2009-09-25 23:54:41 -04:00
|
|
|
|
2009-10-16 15:49:39 -04:00
|
|
|
Rails::Initializer.run do |config|
|
|
|
|
config.root = File.dirname(__FILE__)
|
2009-10-19 22:22:23 -04:00
|
|
|
end
|