Instiki 0.16.5
Update to Rails 2.3.2 (the stable Rails 2.3 release). Add audio/speex support Update CHANGELOG Bump version number
This commit is contained in:
parent
801d307405
commit
e2ccdfd812
264 changed files with 4850 additions and 1906 deletions
15
vendor/rails/railties/test/metal_test.rb
vendored
15
vendor/rails/railties/test/metal_test.rb
vendored
|
@ -8,6 +8,12 @@ class MetalTest < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_metals_should_respect_class_name_conventions
|
||||
use_appdir("pluralmetal") do
|
||||
assert_equal(["LegacyRoutes"], found_metals_as_string_array)
|
||||
end
|
||||
end
|
||||
|
||||
def test_metals_should_return_alphabetical_list_of_found_metal_apps
|
||||
use_appdir("multiplemetals") do
|
||||
assert_equal(["MetalA", "MetalB"], found_metals_as_string_array)
|
||||
|
@ -41,6 +47,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue