New Version

Sync with Latest Instiki Trunk.
Migrate to Rails 1.2.5.
Bump version number.
This commit is contained in:
Jacques Distler 2007-10-15 12:16:54 -05:00
parent de125367b0
commit 207fb1f7f2
120 changed files with 2592 additions and 662 deletions

View file

@ -9,6 +9,10 @@ module ModuleWithMissing
end
end
module ModuleWithConstant
InheritedConstant = "Hello"
end
class DependenciesTest < Test::Unit::TestCase
def teardown
Dependencies.clear
@ -574,6 +578,13 @@ class DependenciesTest < Test::Unit::TestCase
Object.send :remove_const, :M rescue nil
end
def test_new_constants_in_with_inherited_constants
m = Dependencies.new_constants_in(:Object) do
Object.send :include, ModuleWithConstant
end
assert_equal [], m
end
def test_file_with_multiple_constants_and_require_dependency
with_loading 'autoloading_fixtures' do
assert ! defined?(MultipleConstantFile)