aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/plugin_test_helper.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-11-06 17:21:39 -0800
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-11-11 18:09:16 -0800
commit82b9b151ffde44305d67744c0bfd9bb5505f6fbe (patch)
treea30f92f7d438e2fede751509d4772957cdefeda9 /railties/test/plugin_test_helper.rb
parentfca32eb6c5b41e4f19a25b7b246c4a8a3d763667 (diff)
downloadrails-82b9b151ffde44305d67744c0bfd9bb5505f6fbe.tar.gz
rails-82b9b151ffde44305d67744c0bfd9bb5505f6fbe.tar.bz2
rails-82b9b151ffde44305d67744c0bfd9bb5505f6fbe.zip
Refactor plugins
Diffstat (limited to 'railties/test/plugin_test_helper.rb')
-rw-r--r--railties/test/plugin_test_helper.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/railties/test/plugin_test_helper.rb b/railties/test/plugin_test_helper.rb
deleted file mode 100644
index 93004e0ddf..0000000000
--- a/railties/test/plugin_test_helper.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-$:.unshift File.dirname(__FILE__) + "/../lib"
-$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"
-
-require 'test/unit'
-require 'active_support'
-require 'rails/initializer'
-require 'abstract_unit'
-
-# We need to set RAILS_ROOT if it isn't already set
-RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
-
-class Test::Unit::TestCase
- private
- def plugin_fixture_root_path
- File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', 'plugins'))
- end
-
- def only_load_the_following_plugins!(plugins)
- @initializer.configuration.plugins = plugins
- end
-
- def plugin_fixture_path(path)
- File.join(plugin_fixture_root_path, path)
- end
-
- def assert_plugins(list_of_names, array_of_plugins, message=nil)
- assert_equal list_of_names.map { |n| n.to_s }, array_of_plugins.map { |p| p.name }, message
- end
-end