@@ -30,14 +30,14 @@ def test_config_with_db_config_only
30
30
}
31
31
}
32
32
app_db_config ( config_sample ) do
33
- assert_equal config_sample [ "test" ] . symbolize_keys , Rails ::DBConsole . new . config
33
+ assert_equal config_sample [ "test" ] . symbolize_keys , Rails ::DBConsole . new . db_config . configuration_hash
34
34
end
35
35
end
36
36
37
37
def test_config_with_no_db_config
38
38
app_db_config ( nil ) do
39
39
assert_raise ( ActiveRecord ::AdapterNotSpecified ) {
40
- Rails ::DBConsole . new . config
40
+ Rails ::DBConsole . new . db_config . configuration_hash
41
41
}
42
42
end
43
43
end
@@ -56,7 +56,7 @@ def test_config_with_database_url_only
56
56
} . sort
57
57
58
58
app_db_config ( nil ) do
59
- assert_equal expected , Rails ::DBConsole . new . config . sort
59
+ assert_equal expected , Rails ::DBConsole . new . db_config . configuration_hash . sort
60
60
end
61
61
end
62
62
@@ -76,7 +76,7 @@ def test_config_choose_database_url_if_exists
76
76
}
77
77
}
78
78
app_db_config ( sample_config ) do
79
- assert_equal host , Rails ::DBConsole . new . config [ :host ]
79
+ assert_equal host , Rails ::DBConsole . new . db_config . configuration_hash [ :host ]
80
80
end
81
81
end
82
82
@@ -213,7 +213,7 @@ def test_primary_is_automatically_picked_with_3_level_configuration
213
213
}
214
214
215
215
app_db_config ( sample_config ) do
216
- assert_equal "postgresql" , Rails ::DBConsole . new . config [ :adapter ]
216
+ assert_equal "postgresql" , Rails ::DBConsole . new . db_config . configuration_hash [ :adapter ]
217
217
end
218
218
end
219
219
0 commit comments