File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ class MySQLChangeColumnTest < Test::Unit::TestCase
38
38
def run_without_connection
39
39
original_connection = ActiveRecord ::Base . remove_connection
40
40
begin
41
- yield original_connection
41
+ yield original_connection . configuration_hash
42
42
ensure
43
43
ActiveRecord ::Base . establish_connection ( original_connection )
44
44
end
45
45
end
46
46
47
- end
47
+ end
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def select_rows(sql)
43
43
def run_without_connection
44
44
original_connection = ActiveRecord ::Base . remove_connection
45
45
begin
46
- yield original_connection
46
+ yield original_connection . configuration_hash
47
47
ensure
48
48
ActiveRecord ::Base . establish_connection ( original_connection )
49
49
end
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def show_time_zone(connection = self.connection)
42
42
def run_with_connection_removed
43
43
config = ActiveRecord ::Base . remove_connection
44
44
begin
45
- yield config
45
+ yield config . configuration_hash
46
46
ensure
47
47
ActiveRecord ::Base . establish_connection ( config )
48
48
end
You can’t perform that action at this time.
0 commit comments