Sha256: 5bdb1a8bd575c9de9a549a8a5f933de01ecbe9e57d7c9867ad1709208e18bb88
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
require 'spec_helper' describe Yun::Ssh do before do ssh_config = Yun::SshConfig.new "user", "test_key" @ssh = Yun::Ssh.new "127.0.0.1", ssh_config @fake_executor = mock 'executor' @ssh.executor = @fake_executor end it 'should execute the correct ssh command' do expected_command = "ssh -i ~/.ssh/test_key.pem user@127.0.0.1" @fake_executor.expects(:sys_exec).with(expected_command).returns(true) @ssh.connect.should be_true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yun-0.0.6 | spec/yun/model/ssh_spec.rb |