aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb b/activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb
index 0a4bc5113e..181c1a097c 100644
--- a/activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb
@@ -6,12 +6,12 @@ class PreparedStatementsTest < ActiveRecord::PostgreSQLTestCase
fixtures :developers
def setup
- @default_prepared_statements = Developer.connection_config[:prepared_statements]
- Developer.connection_config[:prepared_statements] = false
+ @default_prepared_statements = ActiveRecord::Base.connection.instance_variable_get("@prepared_statements")
+ ActiveRecord::Base.connection.instance_variable_set("@prepared_statements", false)
end
def teardown
- Developer.connection_config[:prepared_statements] = @default_prepared_statements
+ ActiveRecord::Base.connection.instance_variable_set("@prepared_statements", @default_prepared_statements)
end
def test_nothing_raised_with_falsy_prepared_statements