Skip to content

Commit 8359a2f

Browse files
Merge pull request rails#6616 from dpassage/fix_resolver_test_sqlite3
Resolver tests fail if mysql adapter not installed
2 parents 272a7b9 + a36bda8 commit 8359a2f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

activerecord/test/cases/connection_specification/resolver_test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def resolve(spec)
99
end
1010

1111
def test_url_host_no_db
12+
skip "only if mysql is available" unless defined?(MysqlAdapter)
1213
spec = resolve 'mysql://foo?encoding=utf8'
1314
assert_equal({
1415
:adapter => "mysql",
@@ -18,6 +19,7 @@ def test_url_host_no_db
1819
end
1920

2021
def test_url_host_db
22+
skip "only if mysql is available" unless defined?(MysqlAdapter)
2123
spec = resolve 'mysql://foo/bar?encoding=utf8'
2224
assert_equal({
2325
:adapter => "mysql",
@@ -27,6 +29,7 @@ def test_url_host_db
2729
end
2830

2931
def test_url_port
32+
skip "only if mysql is available" unless defined?(MysqlAdapter)
3033
spec = resolve 'mysql://foo:123?encoding=utf8'
3134
assert_equal({
3235
:adapter => "mysql",

0 commit comments

Comments
 (0)