New Version
Sync with Latest Instiki Trunk. Migrate to Rails 1.2.5. Bump version number.
This commit is contained in:
parent
de125367b0
commit
207fb1f7f2
120 changed files with 2592 additions and 662 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue