spec/container_spec.rb in testlab-0.4.8 vs spec/container_spec.rb in testlab-0.4.9

- old
+ new

@@ -50,10 +50,11 @@ describe "methods" do describe "#status" do it "should return a hash of status information about the container" do subject.lxc.stub(:state) { :not_created } + subject.lxc_clone.stub(:exists?) { false } subject.status.should be_kind_of(Hash) subject.status.should_not be_empty end end @@ -163,9 +164,12 @@ 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.lxc_clone.stub(:exists?) { false } + subject.up end end describe "#down" do