aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-23 18:01:03 -0700
committerwycats <wycats@gmail.com>2010-03-23 18:02:29 -0700
commitbc48d39e4c0348f627f9bf2d9090082c54a052c7 (patch)
treeb865b736eb4701e92563503047a7f5914025f9ce
parent45e8cf59dfd6a66f996db1dc02c122bbc66b97aa (diff)
downloadrails-bc48d39e4c0348f627f9bf2d9090082c54a052c7.tar.gz
rails-bc48d39e4c0348f627f9bf2d9090082c54a052c7.tar.bz2
rails-bc48d39e4c0348f627f9bf2d9090082c54a052c7.zip
do not use unloadable constants in tests [#4260 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
-rw-r--r--activerecord/test/cases/migration_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 3181f27bc2..03ee8dcf3c 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -1109,8 +1109,7 @@ if ActiveRecord::Base.connection.supports_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)