spec/unit/ridley/host_connector/ssh_spec.rb in ridley-0.10.0.rc1 vs spec/unit/ridley/host_connector/ssh_spec.rb in ridley-0.10.0.rc2
- old
+ new
@@ -16,11 +16,12 @@
describe "::start" do
let(:options) do
{
user: "vagrant",
- password: "vagrant"
+ password: "vagrant",
+ timeout: 1
}
end
it "evaluates within the context of a new SSH and returns the last item in the block" do
result = subject.start([node_one, node_two], options) do |ssh|
@@ -36,13 +37,13 @@
}.to raise_error(LocalJumpError)
end
end
end
- subject { Ridley::HostConnector::SSH.new([node_one, node_two], user: "vagrant", password: "vagrant") }
+ subject { Ridley::HostConnector::SSH.new([node_one, node_two], ssh: {user: "vagrant", password: "vagrant", timeout: 1}) }
describe "#run" do
- it "returns an SSH::ResponseSet" do
+ it "returns an HostConnector::ResponseSet" do
subject.run("ls").should be_a(Ridley::HostConnector::ResponseSet)
end
end
end