提交 00fc64a6 编写于 作者: Y Yves Senn

Merge pull request #13446 from kuldeepaggarwal/resolver-test-cases

Resolver test cases
......@@ -57,6 +57,16 @@ def test_descriptive_error_message_when_adapter_is_missing
assert_match "Could not load 'active_record/connection_adapters/non-existing_adapter'", error.message
end
def test_url_host_db_for_sqlite3
spec = resolve 'sqlite3://foo:bar@dburl:9000/foo_test'
assert_equal('/foo_test', spec[:database])
end
def test_url_host_memory_db_for_sqlite3
spec = resolve 'sqlite3://foo:bar@dburl:9000/:memory:'
assert_equal(':memory:', spec[:database])
end
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册