Permalink
Browse files

Merge pull request #6616 from dpassage/fix_resolver_test_sqlite3

Resolver tests fail if mysql adapter not installed
  • Loading branch information...
carlosantoniodasilva committed Jun 5, 2012
2 parents 272a7b9 + a36bda8 commit 8359a2f98156d9a870536c75d1a5c6f3fab6fb96
Showing with 3 additions and 0 deletions.
  1. +3 −0 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",

0 comments on commit 8359a2f

Please sign in to comment.