File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -271,14 +271,16 @@ def test_quoting_braces
271
271
config [ :database ] = MYSQL_CONFIG [ :database ]
272
272
config [ :properties ] = MYSQL_CONFIG [ :properties ] . dup
273
273
with_connection ( config ) do |connection |
274
- assert_match ( /^jdbc:mysql:\/ \/ :\d *\/ / , connection . config [ :url ] )
274
+ conf = connection . instance_variable_get ( '@config' )
275
+ assert_match ( /^jdbc:mysql:\/ \/ :\d *\/ / , conf [ :url ] )
275
276
end
276
277
277
278
ActiveRecord ::Base . connection . disconnect!
278
279
279
280
host = [ MYSQL_CONFIG [ :host ] || 'localhost' , '127.0.0.1' ] # fail-over
280
281
with_connection ( config . merge :host => host , :port => nil ) do |connection |
281
- assert_match ( /^jdbc:mysql:\/ \/ .*?127.0.0.1\/ / , connection . config [ :url ] )
282
+ conf = connection . instance_variable_get ( '@config' )
283
+ assert_match ( /^jdbc:mysql:\/ \/ .*?127.0.0.1\/ / , conf [ :url ] )
282
284
end
283
285
ensure
284
286
ActiveRecord ::Base . establish_connection ( MYSQL_CONFIG )
You can’t perform that action at this time.
0 commit comments