spec/lib/ssh_spec.rb in vx-lib-shell-0.1.2 vs spec/lib/ssh_spec.rb in vx-lib-shell-0.1.3
- old
+ new
@@ -85,16 +85,9 @@
code = run_ssh("echo $USER; kill -9 $$")
expect(collected).to eq "#{user}\r\n"
expect(code).to eq(-4)
end
- it "should copy stdin" do
- io = StringIO.new("echo foo ; exit\n")
- code = run_ssh(stdin: io)
- expect(collected).to match "foo\r\n"
- expect(code).to eq 0
- end
-
def open_ssh(&block)
described_class.open(host, user, password: pass, paranoid: false, verbose: 2, port: port, &block)
end
def re(s)