aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorSimon Jefford <simon.jefford@gmail.com>2009-03-05 18:50:52 -0600
committerJoshua Peek <josh@joshpeek.com>2009-03-05 18:50:52 -0600
commite97180c273ada9b252ddf42d340d2947a509cb26 (patch)
treef1c26def30693463c7a657b79a47884a91efb59c /railties/test
parent3191535ff0912e751dcf411c57923ec79b72944d (diff)
downloadrails-e97180c273ada9b252ddf42d340d2947a509cb26.tar.gz
rails-e97180c273ada9b252ddf42d340d2947a509cb26.tar.bz2
rails-e97180c273ada9b252ddf42d340d2947a509cb26.zip
Ensure that loading metals from the main app and engines works on older Ruby versions [#2143 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/metal_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/metal_test.rb b/railties/test/metal_test.rb
index a31f4ab273..143efdda11 100644
--- a/railties/test/metal_test.rb
+++ b/railties/test/metal_test.rb
@@ -41,6 +41,15 @@ class MetalTest < Test::Unit::TestCase
end
end
+ def test_metal_finding_should_work_with_multiple_metal_paths_in_185_and_below
+ use_appdir("singlemetal") do
+ engine_metal_path = "#{File.dirname(__FILE__)}/fixtures/plugins/engines/engine/app/metal"
+ Rails::Rack::Metal.metal_paths << engine_metal_path
+ $LOAD_PATH << engine_metal_path
+ assert_equal(["FooMetal", "EngineMetal"], found_metals_as_string_array)
+ end
+ end
+
private
def use_appdir(root)