Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit e633cdb34a382fc606a424c5861764a9707a771d 1 parent 8a5b480
प्रथमेश prathamesh-sonpatki authored
2  activerecord/test/cases/connection_adapters/connection_handler_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.