Skip to content

Commit cd7bfcd

Browse files
committed
Use env without unsetenv_others
1 parent 6d13a32 commit cd7bfcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/units/test_merge.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def command(cmd)
8787
puts '-' * 80
8888
puts "Running: #{cmd}"
8989
puts '-' * 10
90-
output, status = Open3.capture2e("#{cmd} 2>&1")
90+
output, status = Open3.capture2e(env, "#{cmd} 2>&1")
9191
puts output
9292
puts '-' * 10
9393
pp status
@@ -128,8 +128,8 @@ def work_tree
128128

129129
def test_command_with_env
130130
command_with_env(
131-
{ 'PATH' => 'testing' },
132-
%Q(echo "#{env_var('PATH')}" 2>&1)
131+
{ 'TERM_PROGRAM' => 'vi' },
132+
%Q(echo "#{env_var('TERM_PROGRAM')}")
133133
)
134134
end
135135

0 commit comments

Comments
 (0)