Permalink
Browse files

Minor refactoring of new test

Fix sloppiness from 3a9e25c
  • Loading branch information...
MacksMind committed Jun 24, 2012
1 parent 3a9e25c commit 438fdd8a59f0c77752c479c67c6e18ca45cf038e
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/connection_specification/resolver_test.rb
@@ -45,12 +45,12 @@ def test_url_port
def test_url_no_database_yml
with_database_url 'sqlite3://localhost/db/production.sqlite3' do
- spec = Resolver.new(ENV["DATABASE_URL"],{}).spec.config
+ spec = resolve ENV["DATABASE_URL"]
assert_equal({
:adapter => "sqlite3",
:database => "db/production.sqlite3",
:host => "localhost" }, spec)
- spec = Resolver.new("production",{}).spec.config
+ spec = resolve 'production'
assert_equal({
:adapter => "sqlite3",
:database => "db/production.sqlite3",

0 comments on commit 438fdd8

Please sign in to comment.