aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/dependencies_test.rb
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-07-14 16:01:28 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-08-23 16:00:58 -0500
commitcc14a3b2c1d5684c88355230faa263515358776d (patch)
tree26b651227c79a1869a9dca775b64e4b862b1b307 /activesupport/test/dependencies_test.rb
parente8afb84b13fc7c2fe1467ed88e1f8b5144eac4a1 (diff)
downloadrails-cc14a3b2c1d5684c88355230faa263515358776d.tar.gz
rails-cc14a3b2c1d5684c88355230faa263515358776d.tar.bz2
rails-cc14a3b2c1d5684c88355230faa263515358776d.zip
Fix ActiveSupport tests that depend on run order
Diffstat (limited to 'activesupport/test/dependencies_test.rb')
-rw-r--r--activesupport/test/dependencies_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb
index 69829bcda5..f1da6378a7 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -679,6 +679,8 @@ class DependenciesTest < ActiveSupport::TestCase
assert_equal true, M.unloadable
assert_equal false, M.unloadable
end
+ ensure
+ Object.class_eval { remove_const :M }
end
def test_unloadable_constants_should_receive_callback