We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ENV.update
1 parent e32aa7a commit 04067e5Copy full SHA for 04067e5
test/open-uri/test_ftp.rb
@@ -8,10 +8,10 @@ def with_env(h)
8
begin
9
old = {}
10
h.each_key {|k| old[k] = ENV[k] }
11
- h.each {|k, v| ENV[k] = v }
+ ENV.update(h)
12
yield
13
ensure
14
- h.each_key {|k| ENV[k] = old[k] }
+ ENV.update(old)
15
end
16
17
test/open-uri/test_proxy.rb
@@ -11,10 +11,10 @@ def with_env(h)
18
19
20
0 commit comments