spec/node_spec.rb in testlab-0.9.1 vs spec/node_spec.rb in testlab-1.0.0
- old
+ new
@@ -97,24 +97,24 @@
subject.stub(:state) { :running }
subject.down
end
end
- describe "setup" do
- it "should setup the node" do
- subject.provisioners = Array.new
- subject.containers.each { |c| c.provisioners = Array.new }
+ describe "provision" do
+ it "should provision the node" do
subject.stub(:state) { :running }
- subject.setup
+ subject.stub(:provisioners) { Array.new }
+
+ subject.provision
end
end
- describe "teardown" do
- it "should teardown the node" do
- subject.provisioners = Array.new
- subject.containers.each { |c| c.provisioners = Array.new }
+ describe "deprovision" do
+ it "should deprovision the node" do
subject.stub(:state) { :running }
- subject.teardown
+ subject.stub(:provisioners) { Array.new }
+
+ subject.deprovision
end
end
end