aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/plugin_test_helper.rb
blob: 58649ea2fa9e580f90ab56ea9d39abd7a4157c6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$:.unshift File.dirname(__FILE__) + "/../lib"
$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"

require 'test/unit'
require 'active_support'
require 'initializer'

# We need to set RAILS_ROOT if it isn't already set
RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
class Test::Unit::TestCase
  def plugin_fixture_root_path
    File.join(File.dirname(__FILE__), 'fixtures', 'plugins')
  end
end