diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-03 11:02:14 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-03 11:02:14 +0000 |
commit | bee2f6d317cd186b5a6c1fe6d03caca545aa881c (patch) | |
tree | bdba85bfba59264fc6d694b549ef5535050a7189 /activerecord/test/cases/migration_test.rb | |
parent | 656d9e7673e8f7aad34e38a9251b468ab8d3bb3f (diff) | |
download | rails-bee2f6d317cd186b5a6c1fe6d03caca545aa881c.tar.gz rails-bee2f6d317cd186b5a6c1fe6d03caca545aa881c.tar.bz2 rails-bee2f6d317cd186b5a6c1fe6d03caca545aa881c.zip |
Remove migration constants to avoid method redefined warnings
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 917328231d..f74085fc7f 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1786,10 +1786,14 @@ if ActiveRecord::Base.connection.supports_migrations? def test_migrator_interleaved_migrations ActiveRecord::Migrator.up(MIGRATIONS_ROOT + "/interleaved/pass_1") + Object.send :remove_const, :InterleavedInnocentJointable + assert_nothing_raised do ActiveRecord::Migrator.up(MIGRATIONS_ROOT + "/interleaved/pass_2") end + Object.send :remove_const, :InterleavedPeopleHaveLastNames + Person.reset_column_information assert Person.column_methods_hash.include?(:last_name) |