Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6616 from dpassage/fix_resolver_test_sqlite3

Resolver tests fail if mysql adapter not installed
  • Loading branch information...
commit 8359a2f98156d9a870536c75d1a5c6f3fab6fb96 2 parents 272a7b9 + a36bda8
@carlosantoniodasilva carlosantoniodasilva authored
View
3  activerecord/test/cases/connection_specification/resolver_test.rb
@@ -9,6 +9,7 @@ def resolve(spec)
end
def test_url_host_no_db
+ skip "only if mysql is available" unless defined?(MysqlAdapter)
spec = resolve 'mysql://foo?encoding=utf8'
assert_equal({
:adapter => "mysql",
@@ -18,6 +19,7 @@ def test_url_host_no_db
end
def test_url_host_db
+ skip "only if mysql is available" unless defined?(MysqlAdapter)
spec = resolve 'mysql://foo/bar?encoding=utf8'
assert_equal({
:adapter => "mysql",
@@ -27,6 +29,7 @@ def test_url_host_db
end
def test_url_port
+ skip "only if mysql is available" unless defined?(MysqlAdapter)
spec = resolve 'mysql://foo:123?encoding=utf8'
assert_equal({
:adapter => "mysql",
Please sign in to comment.
Something went wrong with that request. Please try again.