spec/container_spec.rb in testlab-0.4.0 vs spec/container_spec.rb in testlab-0.4.1

- old
+ new

@@ -145,10 +145,11 @@ describe "#create" do it "should create the container" do subject.lxc.config.stub(:save) { true } subject.stub(:detect_arch) { "amd64" } subject.lxc.stub(:create) { true } + subject.node.ssh.stub(:exec) subject.create end end describe "#destroy" do @@ -161,9 +162,10 @@ describe "#up" do it "should up the container" do subject.lxc.stub(:start) { true } subject.lxc.stub(:wait) { true } subject.lxc.stub(:state) { :running } + subject.lxc.stub(:attach) subject.up end end describe "#down" do