Permalink
Browse files

added one more test while in the process of tracking down a bug

  • Loading branch information...
1 parent cbc53fd commit a21757112c972187606288c6fb80f70984d7cb15 @Roman2K committed Feb 15, 2009
View
3 test/constants/mixin_side_effect/a.rb
@@ -0,0 +1,3 @@
+module A
+ include M
+end
View
2 test/constants/mixin_side_effect/a/c.rb
@@ -0,0 +1,2 @@
+class A::C
+end
View
2 test/constants/mixin_side_effect/a/m.rb
@@ -0,0 +1,2 @@
+module A::M
+end
View
11 test/rails_development_boost_test.rb
@@ -45,6 +45,16 @@ def test_nested_constant_update_cascade
end
end
+ def test_mixin_side_effect
+ load_from "mixin_side_effect"
+
+ assert_different_object_id 'A', 'A::M', 'A::C' do
+ reload! do
+ update("a/m.rb")
+ end
+ end
+ end
+
def test_mixin_update_cascade
load_from "mixins"
@@ -192,6 +202,7 @@ def clean_up!(stage)
Deps.clear
Deps.history.clear
+ # Sanity checks
assert_equal([], Deps.constants_being_removed, message)
assert_equal([], Deps.module_cache, message)
assert_equal(Set.new, Deps.loaded, message)

0 comments on commit a217571

Please sign in to comment.