rails/railties/test/abstract_unit.rb
Carlhuda 24ab5665b2 Revert "Fix test load paths for those not using bundler"
This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818.

This commit broke tests. You cannot have a file called "bundler" on the load path.
2010-02-23 17:31:17 -08:00

21 lines
456 B
Ruby

ORIG_ARGV = ARGV.dup
require File.expand_path("../../../load_paths", __FILE__)
$:.unshift File.expand_path("../../builtin/rails_info", __FILE__)
require 'stringio'
require 'test/unit'
require 'fileutils'
require 'active_support'
require 'active_support/core_ext/logger'
require 'action_controller'
require 'rails/all'
# TODO: Remove these hacks
class TestApp < Rails::Application
config.root = File.dirname(__FILE__)
end
Rails.application = TestApp