From bc48d39e4c0348f627f9bf2d9090082c54a052c7 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 23 Mar 2010 18:01:03 -0700 Subject: [PATCH] do not use unloadable constants in tests [#4260 state:resolved] Signed-off-by: wycats --- activerecord/test/cases/migration_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 3181f27bc29fa..03ee8dcf3c384 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1109,8 +1109,7 @@ def test_only_loads_pending_migrations ActiveRecord::Migrator.up(MIGRATIONS_ROOT + "/valid", 1) # now unload the migrations that have been defined - PeopleHaveLastNames.unloadable - ActiveSupport::Dependencies.remove_unloadable_constants! + Object.send(:remove_const, :PeopleHaveLastNames) ActiveRecord::Migrator.migrate(MIGRATIONS_ROOT + "/valid", nil)