File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
activerecord/test/cases/adapters/postgresql Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ class PreparedStatementsTest < ActiveRecord::PostgreSQLTestCase
66 fixtures :developers
77
88 def setup
9- @default_prepared_statements = Developer . connection_config [ : prepared_statements]
10- Developer . connection_config [ : prepared_statements] = false
9+ @default_prepared_statements = ActiveRecord :: Base . connection . instance_variable_get ( "@ prepared_statements" )
10+ ActiveRecord :: Base . connection . instance_variable_set ( "@ prepared_statements" , false )
1111 end
1212
1313 def teardown
14- Developer . connection_config [ : prepared_statements] = @default_prepared_statements
14+ ActiveRecord :: Base . connection . instance_variable_set ( "@ prepared_statements" , @default_prepared_statements )
1515 end
1616
1717 def test_nothing_raised_with_falsy_prepared_statements
You can’t perform that action at this time.
0 commit comments