diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2014-01-10 09:42:40 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2014-01-10 10:06:19 +0530 |
commit | e633cdb34a382fc606a424c5861764a9707a771d (patch) | |
tree | 56da35cdc36e22f594b532427fcccc9c377490e8 /activerecord/test/cases/connection_adapters | |
parent | 8a5b480ebb46215210294b87a7ed9f1d8a032312 (diff) | |
download | rails-e633cdb34a382fc606a424c5861764a9707a771d.tar.gz rails-e633cdb34a382fc606a424c5861764a9707a771d.tar.bz2 rails-e633cdb34a382fc606a424c5861764a9707a771d.zip |
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
Diffstat (limited to 'activerecord/test/cases/connection_adapters')
-rw-r--r-- | activerecord/test/cases/connection_adapters/connection_handler_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/connection_adapters/connection_handler_test.rb b/activerecord/test/cases/connection_adapters/connection_handler_test.rb index 3365ad1294..318cc5a32c 100644 --- a/activerecord/test/cases/connection_adapters/connection_handler_test.rb +++ b/activerecord/test/cases/connection_adapters/connection_handler_test.rb @@ -14,7 +14,7 @@ module ActiveRecord end def teardown - ENV["DATABASE_URL"] = @previous_database_url if @previous_database_url + ENV["DATABASE_URL"] = @previous_database_url end def test_string_connection |