diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/ar_schema_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/schema_test_postgresql.rb | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/activerecord/test/ar_schema_test.rb b/activerecord/test/ar_schema_test.rb index 2b7c0c3fc7..f20fa6c180 100644 --- a/activerecord/test/ar_schema_test.rb +++ b/activerecord/test/ar_schema_test.rb @@ -4,6 +4,8 @@ require "#{File.dirname(__FILE__)}/../lib/active_record/schema" if ActiveRecord::Base.connection.supports_migrations? class ActiveRecordSchemaTest < Test::Unit::TestCase + self.use_transactional_fixtures = false + def setup @connection = ActiveRecord::Base.connection end diff --git a/activerecord/test/schema_test_postgresql.rb b/activerecord/test/schema_test_postgresql.rb index 7f7d85ae43..c743a86195 100644 --- a/activerecord/test/schema_test_postgresql.rb +++ b/activerecord/test/schema_test_postgresql.rb @@ -1,6 +1,8 @@ require 'abstract_unit' class SchemaTest < Test::Unit::TestCase + self.use_transactional_fixtures = false + SCHEMA_NAME = 'test_schema' TABLE_NAME = 'things' COLUMNS = [ @@ -15,8 +17,7 @@ class SchemaTest < Test::Unit::TestCase end def teardown - @connection.execute "DROP TABLE #{SCHEMA_NAME}.#{TABLE_NAME}" - @connection.execute "DROP SCHEMA #{SCHEMA_NAME}" + @connection.execute "DROP SCHEMA #{SCHEMA_NAME} CASCADE" end def test_with_schema_prefixed_table_name |