File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11
11
require "active_support/core_ext/kernel/reporting"
12
12
require "active_support/core_ext/kernel/singleton_class"
13
13
14
- require "support/config"
15
- require "support/connection"
16
-
17
14
# TODO: Move all these random hacks into the ARTest namespace and into the support/ dir
18
15
19
16
Thread . abort_on_exception = true
24
21
# Disable available locale checks to avoid warnings running the test suite.
25
22
I18n . enforce_available_locales = false
26
23
27
- # Connect to the database
28
- ARTest . connect
29
-
30
24
# Quote "type" if it's a reserved word for the current connection.
31
25
QUOTED_TYPE = ActiveRecord ::Base . connection . quote_column_name ( "type" )
32
26
Original file line number Diff line number Diff line change 8
8
require "active_record/fixtures"
9
9
10
10
require "cases/validations_repair_helper"
11
+ require_relative "../support/config"
12
+ require_relative "../support/connection"
11
13
require_relative "../support/adapter_helper"
12
14
13
15
module ActiveRecord
@@ -220,6 +222,9 @@ def clean_up_connection_handler
220
222
end
221
223
end
222
224
end
225
+
226
+ # Connect to the database
227
+ ARTest . connect
223
228
end
224
229
225
230
class PostgreSQLTestCase < TestCase
You can’t perform that action at this time.
0 commit comments