aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/plugin_test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/plugin_test_helper.rb')
-rw-r--r--railties/test/plugin_test_helper.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/test/plugin_test_helper.rb b/railties/test/plugin_test_helper.rb
new file mode 100644
index 0000000000..58649ea2fa
--- /dev/null
+++ b/railties/test/plugin_test_helper.rb
@@ -0,0 +1,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 \ No newline at end of file