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...
1 parent 8a5b480 commit e633cdb34a382fc606a424c5861764a9707a771d @prathamesh-sonpatki prathamesh-sonpatki committed Jan 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/connection_adapters/connection_handler_test.rb
View
2 activerecord/test/cases/connection_adapters/connection_handler_test.rb
@@ -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

0 comments on commit e633cdb

Please sign in to comment.