diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-19 14:35:33 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-19 14:35:33 -0300 |
commit | 361d2ff615b7748b25ae1903892cde9e0a27fd29 (patch) | |
tree | c9f98d9e62d2d994c3a18075fdbf6ad077d4ff04 /activerecord | |
parent | 889f61efff779025dc2d8682dcbb018755f314bd (diff) | |
download | rails-361d2ff615b7748b25ae1903892cde9e0a27fd29.tar.gz rails-361d2ff615b7748b25ae1903892cde9e0a27fd29.tar.bz2 rails-361d2ff615b7748b25ae1903892cde9e0a27fd29.zip |
Fixing test order issues
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/extension_migration_test.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/extension_migration_test.rb b/activerecord/test/cases/adapters/postgresql/extension_migration_test.rb index 9387ca73e1..91058f8681 100644 --- a/activerecord/test/cases/adapters/postgresql/extension_migration_test.rb +++ b/activerecord/test/cases/adapters/postgresql/extension_migration_test.rb @@ -26,17 +26,23 @@ class PostgresqlExtensionMigrationTest < ActiveRecord::TestCase return skip("no extension support") end + @old_schema_migration_tabel_name = ActiveRecord::SchemaMigration.table_name + @old_tabel_name_prefix = ActiveRecord::Base.table_name_prefix + @old_tabel_name_suffix = ActiveRecord::Base.table_name_suffix + ActiveRecord::Base.table_name_prefix = "p_" ActiveRecord::Base.table_name_suffix = "_s" ActiveRecord::SchemaMigration.delete_all rescue nil + ActiveRecord::SchemaMigration.table_name = "p_schema_migrations_s" ActiveRecord::Migration.verbose = false end def teardown - ActiveRecord::Base.table_name_prefix = "" - ActiveRecord::Base.table_name_suffix = "" + ActiveRecord::Base.table_name_prefix = @old_tabel_name_prefix + ActiveRecord::Base.table_name_suffix = @old_tabel_name_suffix ActiveRecord::SchemaMigration.delete_all rescue nil ActiveRecord::Migration.verbose = true + ActiveRecord::SchemaMigration.table_name = @old_schema_migration_tabel_name super end |