Skip to content

Commit

Permalink
do not use unloadable constants in tests [#4260 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information
tenderlove authored and wycats committed Mar 24, 2010
1 parent 45e8cf5 commit bc48d39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activerecord/test/cases/migration_test.rb
Expand Up @@ -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)

Expand Down

0 comments on commit bc48d39

Please sign in to comment.