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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user