diff options
author | Hongli Lai (Phusion) <hongli@phusion.nl> | 2009-01-13 16:01:44 +0100 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-13 15:58:50 -0800 |
commit | 9bcf01b23c25e640da7908ac8b1b49fbf7d2e51a (patch) | |
tree | 78f7a9bc449265bbf666baafa52bcc9c88c2ffdc /activerecord/test | |
parent | b281a6a5b2137548501ef590379d7af5f6955d2d (diff) | |
download | rails-9bcf01b23c25e640da7908ac8b1b49fbf7d2e51a.tar.gz rails-9bcf01b23c25e640da7908ac8b1b49fbf7d2e51a.tar.bz2 rails-9bcf01b23c25e640da7908ac8b1b49fbf7d2e51a.zip |
Fix PostgreSQL unit test failures that only occur when using the old 'postgres' driver.
[#1748 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/transactions_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb index f07fad1828..4a07a8bb1d 100644 --- a/activerecord/test/cases/transactions_test.rb +++ b/activerecord/test/cases/transactions_test.rb @@ -321,9 +321,8 @@ class TransactionTest < ActiveRecord::TestCase end end - if current_adapter?(:PostgreSQLAdapter) && PGconn.public_method_defined?(:transaction_status) + if current_adapter?(:PostgreSQLAdapter) && defined?(PGconn::PQTRANS_IDLE) def test_outside_transaction_works - Topic.logger.info("-------------") assert Topic.connection.outside_transaction? Topic.connection.begin_db_transaction assert !Topic.connection.outside_transaction? |