Permalink
Browse files

Disable transactional fixtures for ar_schema_test and schema_test_pos…

…tgresql

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 854048a commit 110360f858d5db54efbe9b4b3b35f5ecca28b6bd @jeremy jeremy committed Sep 30, 2005
Showing with 5 additions and 2 deletions.
  1. +2 −0 activerecord/test/ar_schema_test.rb
  2. +3 −2 activerecord/test/schema_test_postgresql.rb
@@ -4,6 +4,8 @@
if ActiveRecord::Base.connection.supports_migrations?
class ActiveRecordSchemaTest < Test::Unit::TestCase
+ self.use_transactional_fixtures = false
+
def setup
@connection = ActiveRecord::Base.connection
end
@@ -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 @@ def setup
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

0 comments on commit 110360f

Please sign in to comment.