spec/symphony/tasks/ssh_spec.rb
changeset 17 5db18679edcf
parent 4 3972315383b3
--- a/spec/symphony/tasks/ssh_spec.rb	Tue Apr 07 16:42:31 2020 -0700
+++ b/spec/symphony/tasks/ssh_spec.rb	Thu Jul 09 15:05:21 2020 -0700
@@ -38,12 +38,12 @@
 			allow( IO ).to receive( :pipe ).and_return([ pipe, pipe ])
 
 			args = [
-				'-p', '22', '-i', '/tmp/sekrit.rsa', '-l', 'symphony', 'example.com'
+				'-p', '22', '-i', '/tmp/sekrit.rsa', '-l', 'symphony', 'example.com', 'woohoo'
 			]
 
 			expect( Process ).to receive( :spawn ).with(
-				*[ ssh.to_s, described_class.opts, args ].flatten,
-				:out => pipe, :in => pipe, :close_others => true
+				*[ {}, ssh.to_s, described_class.opts, args ].flatten,
+				out: pipe, in: pipe, close_others: true, unsetenv_others: true
 			).and_return( 12 )
 
 			expect( Process ).to receive( :waitpid2 ).with( 12 ).and_return([ 12, 1 ])