From 015888b366dec336732018eaf0f90ef8828f9b0b Mon Sep 17 00:00:00 2001 From: Phillip Aldridge Date: Wed, 8 Nov 2023 13:25:05 +1300 Subject: [PATCH] Resolve TypeError: Cannot dup ENV, use ENV.to_h to get a copy of ENV as a hash --- spec/warbler/web_server_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/warbler/web_server_spec.rb b/spec/warbler/web_server_spec.rb index 7147a5d1..8da8c1eb 100644 --- a/spec/warbler/web_server_spec.rb +++ b/spec/warbler/web_server_spec.rb @@ -8,7 +8,7 @@ def self.reset_local_repository describe Warbler::WebServer::Artifact do - @@_env = ENV.dup + @@_env = ENV.to_h after(:all) { ENV.clear; ENV.update @@_env }