@@ -51,34 +51,6 @@ def test_resolver_with_database_uri_and_current_env_symbol_key_and_rack_env
5151 assert_equal expected , actual
5252 end
5353
54- def test_resolver_with_database_uri_and_and_current_env_string_key
55- ENV [ 'DATABASE_URL' ] = "postgres://localhost/foo"
56- config = { "default_env" => { "adapter" => "not_postgres" , "database" => "not_foo" } }
57- actual = assert_deprecated { resolve_spec ( "default_env" , config ) }
58- expected = { "adapter" => "postgresql" , "database" => "foo" , "host" => "localhost" }
59- assert_equal expected , actual
60- end
61-
62- def test_resolver_with_database_uri_and_and_current_env_string_key_and_rails_env
63- ENV [ 'DATABASE_URL' ] = "postgres://localhost/foo"
64- ENV [ 'RAILS_ENV' ] = "foo"
65-
66- config = { "not_production" => { "adapter" => "not_postgres" , "database" => "not_foo" } }
67- actual = assert_deprecated { resolve_spec ( "foo" , config ) }
68- expected = { "adapter" => "postgresql" , "database" => "foo" , "host" => "localhost" }
69- assert_equal expected , actual
70- end
71-
72- def test_resolver_with_database_uri_and_and_current_env_string_key_and_rack_env
73- ENV [ 'DATABASE_URL' ] = "postgres://localhost/foo"
74- ENV [ 'RACK_ENV' ] = "foo"
75-
76- config = { "not_production" => { "adapter" => "not_postgres" , "database" => "not_foo" } }
77- actual = assert_deprecated { resolve_spec ( "foo" , config ) }
78- expected = { "adapter" => "postgresql" , "database" => "foo" , "host" => "localhost" }
79- assert_equal expected , actual
80- end
81-
8254 def test_resolver_with_database_uri_and_known_key
8355 ENV [ 'DATABASE_URL' ] = "postgres://localhost/foo"
8456 config = { "production" => { "adapter" => "not_postgres" , "database" => "not_foo" , "host" => "localhost" } }
@@ -95,16 +67,6 @@ def test_resolver_with_database_uri_and_unknown_symbol_key
9567 end
9668 end
9769
98- def test_resolver_with_database_uri_and_unknown_string_key
99- ENV [ 'DATABASE_URL' ] = "postgres://localhost/foo"
100- config = { "not_production" => { "adapter" => "not_postgres" , "database" => "not_foo" } }
101- assert_deprecated do
102- assert_raises AdapterNotSpecified do
103- resolve_spec ( "production" , config )
104- end
105- end
106- end
107-
10870 def test_resolver_with_database_uri_and_supplied_url
10971 ENV [ 'DATABASE_URL' ] = "not-postgres://not-localhost/not_foo"
11072 config = { "production" => { "adapter" => "also_not_postgres" , "database" => "also_not_foo" } }
0 commit comments