Restore DATABASE_URL even if it's nil in connection_handler test

- We have to restore DATABASE_URL to its previous state irrespective of
  previous value is nil or not
This commit is contained in:
Prathamesh Sonpatki 2014-01-10 09:42:40 +05:30
parent 8a5b480ebb
commit e633cdb34a

@ -14,7 +14,7 @@ def setup
end
def teardown
ENV["DATABASE_URL"] = @previous_database_url if @previous_database_url
ENV["DATABASE_URL"] = @previous_database_url
end
def test_string_connection