diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-14 16:01:28 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-08-23 16:00:58 -0500 |
commit | cc14a3b2c1d5684c88355230faa263515358776d (patch) | |
tree | 26b651227c79a1869a9dca775b64e4b862b1b307 /activesupport/test/dependencies_test.rb | |
parent | e8afb84b13fc7c2fe1467ed88e1f8b5144eac4a1 (diff) | |
download | rails-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.rb | 2 |
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 |