spec/testlab_spec.rb in testlab-0.9.1 vs spec/testlab_spec.rb in testlab-1.0.0

- old
+ new

@@ -36,38 +36,38 @@ end describe "methods" do - describe "setup" do - it "should setup the test lab" do + describe "provision" do + it "should provision the test lab" do subject.stub(:dead?) { false } subject.nodes.each do |node| - node.stub(:setup) { true } + node.stub(:provision) { true } end subject.containers.each do |container| - container.stub(:setup) { true } + container.stub(:provision) { true } end subject.networks.each do |network| - network.stub(:setup) { true } + network.stub(:provision) { true } end - subject.setup + subject.provision end end - describe "teardown" do - it "should teardown the test lab" do + describe "deprovision" do + it "should deprovision the test lab" do subject.stub(:dead?) { false } subject.nodes.each do |node| - node.stub(:teardown) { true } + node.stub(:deprovision) { true } end subject.containers.each do |container| - container.stub(:teardown) { true } + container.stub(:deprovision) { true } end subject.networks.each do |network| - network.stub(:teardown) { true } + network.stub(:deprovision) { true } end - subject.teardown + subject.deprovision end end describe "up" do it "should online the test lab" do