spec/integration/other_spec.rb in infrataster-0.1.11 vs spec/integration/other_spec.rb in infrataster-0.1.12
- old
+ new
@@ -13,7 +13,13 @@
end
it "executes a command on the current server" do
result = current_server.ssh_exec("cat /tmp/test-#{time.to_i}")
expect(result.chomp).to eq('Hello')
end
+ it "connects to the current server via SSH" do
+ current_server.ssh do |ssh|
+ expect(ssh.exec!('echo -n Hello')).to eq('Hello')
+ end
+ end
+
end