spec/node_spec.rb in testlab-0.5.1 vs spec/node_spec.rb in testlab-0.5.2
- old
+ new
@@ -115,10 +115,12 @@
subject.ssh.stub(:bootstrap) { true }
subject.stub(:route_setup) { true }
subject.stub(:build_resolv_conf) { true }
subject.stub(:bind_setup) { true }
subject.stub(:bind_reload) { true }
+ subject.stub(:create) { true }
+ subject.stub(:up) { true }
subject.containers.each do |container|
container.stub(:setup) { true }
end
subject.networks.each do |network|
network.stub(:setup) { true }
@@ -128,9 +130,11 @@
end
describe "teardown" do
it "should teardown the node" do
subject.stub(:route_setup) { true }
+ subject.stub(:down) { true }
+ subject.stub(:destroy) { true }
subject.containers.each do |container|
container.stub(:teardown) { true }
end
subject.networks.each do |network|
network.stub(:teardown) { true }