Permalink
Browse files

do not use unloadable constants in tests [#4260 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information...
1 parent 45e8cf5 commit bc48d39e4c0348f627f9bf2d9090082c54a052c7 @tenderlove tenderlove committed with wycats Mar 24, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 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)

0 comments on commit bc48d39

Please sign in to comment.