Permalink
Browse files

Fix resolver_test.rb on travis (postgresql isn't setup, so it can't l…

…oad the connection adapter)
  • Loading branch information...
1 parent 1defb6a commit d534c8fbe26dbc1101d80ad3af4cf166d0e3cda8 @jonleighton jonleighton committed Nov 29, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 activerecord/test/cases/connection_specification/resolver_test.rb
@@ -9,27 +9,27 @@ def resolve(spec)
end
def test_url_host_no_db
- spec = resolve 'postgres://foo?encoding=utf8'
+ spec = resolve 'mysql://foo?encoding=utf8'
assert_equal({
- :adapter => "postgresql",
+ :adapter => "mysql",
:database => "",
:host => "foo",
:encoding => "utf8" }, spec)
end
def test_url_host_db
- spec = resolve 'postgres://foo/bar?encoding=utf8'
+ spec = resolve 'mysql://foo/bar?encoding=utf8'
assert_equal({
- :adapter => "postgresql",
+ :adapter => "mysql",
:database => "bar",
:host => "foo",
:encoding => "utf8" }, spec)
end
def test_url_port
- spec = resolve 'postgres://foo:123?encoding=utf8'
+ spec = resolve 'mysql://foo:123?encoding=utf8'
assert_equal({
- :adapter => "postgresql",
+ :adapter => "mysql",
:database => "",
:port => 123,
:host => "foo",

2 comments on commit d534c8f

Member

arunagw replied Nov 29, 2011

👍

This is commit was looking in morning :-)

Owner

tenderlove replied Nov 29, 2011

We should probably switch this to use whatever the current running adapter is. (I think)

Please sign in to comment.