spec/container_spec.rb in testlab-1.8.2 vs spec/container_spec.rb in testlab-1.8.3
- old
+ new
@@ -54,9 +54,11 @@
describe "#status" do
it "should return a hash of status information about the container" do
subject.node.stub(:dead?) { false }
subject.node.stub(:state) { :running }
subject.lxc.stub(:state) { :not_created }
+ subject.lxc.stub(:memory_usage) { 0 }
+ subject.lxc.stub(:cpu_usage) { 0 }
subject.lxc_clone.stub(:exists?) { false }
subject.status.should be_kind_of(Hash)
subject.status.should_not be_empty
end