From 9e9a3c53142d711910816d6bf0402847ffb4a34f Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Thu, 12 Feb 2015 14:44:47 +0100 Subject: get rid of transaction warning when running PG tests. This finally removes the warning "WARNING: there is no transaction in progress" when running Active Record tests using PostgreSQL. --- activerecord/test/cases/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index 0a577fa2f5..f1f927852c 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -124,7 +124,7 @@ def enable_extension!(extension, connection) return connection.reconnect! if connection.extension_enabled?(extension) connection.enable_extension extension - connection.commit_db_transaction + connection.commit_db_transaction if connection.transaction_open? connection.reconnect! end -- cgit v1.2.3