@@ -129,7 +129,7 @@ def get_mode(file)
129
129
ENV [ env_key ] = original_value
130
130
new_value = 'goodbye'
131
131
132
- Puppet ::Util . withenv ( { env_key . upcase => new_value } , :posix ) do
132
+ Puppet ::Util . withenv ( env_key . upcase => new_value ) do
133
133
expect ( ENV [ env_key ] ) . to eq ( original_value )
134
134
expect ( ENV [ env_key . upcase ] ) . to eq ( new_value )
135
135
end
@@ -154,7 +154,7 @@ def get_mode(file)
154
154
ENV [ env_key ] = original_value
155
155
new_value = 'goodbye'
156
156
157
- Puppet ::Util . withenv ( { env_key . upcase => new_value } , :windows ) do
157
+ Puppet ::Util . withenv ( env_key . upcase => new_value ) do
158
158
expect ( ENV [ env_key ] ) . to eq ( new_value )
159
159
expect ( ENV [ env_key . upcase ] ) . to eq ( new_value )
160
160
end
@@ -174,7 +174,7 @@ def withenv_utf8(&block)
174
174
utf_8_value = utf_8_key + 'value'
175
175
codepage_key = utf_8_key . dup . force_encoding ( Encoding . default_external )
176
176
177
- Puppet ::Util . withenv ( { utf_8_key => utf_8_value } , :windows ) do
177
+ Puppet ::Util . withenv ( utf_8_key => utf_8_value ) do
178
178
# the true Windows environment APIs see the variables correctly
179
179
expect ( process . get_environment_strings [ utf_8_key ] ) . to eq ( utf_8_value )
180
180
@@ -201,7 +201,7 @@ def withenv_utf8(&block)
201
201
process . set_environment_variable ( env_var_name , utf_8_str )
202
202
203
203
original_keys = process . get_environment_strings . keys . to_a
204
- Puppet ::Util . withenv ( { } , :windows ) { }
204
+ Puppet ::Util . withenv ( { } ) { }
205
205
206
206
env = process . get_environment_strings
207
207
0 commit comments