aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/dependencies_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-24 08:56:16 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-24 08:56:16 -0700
commit2c571b3f0544a6457db4818e752f4cd4bacd48b4 (patch)
treea7dae21847d456a9ac713c4b93de0546201a6100 /activesupport/test/dependencies_test.rb
parent6a70f2dd6b791c3f4888122d5b7dd9c8f5cac871 (diff)
parent73f0afd1d41aa6c3febcc2e93e4d19d9bf0f27dc (diff)
downloadrails-2c571b3f0544a6457db4818e752f4cd4bacd48b4.tar.gz
rails-2c571b3f0544a6457db4818e752f4cd4bacd48b4.tar.bz2
rails-2c571b3f0544a6457db4818e752f4cd4bacd48b4.zip
Merge pull request #7058 from frodsan/fix_as_random_tests
Fix 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