spec/node_spec.rb in testlab-1.9.2 vs spec/node_spec.rb in testlab-1.10.0
- old
+ new
@@ -123,8 +123,46 @@
subject.deprovision
end
end
+ describe "#build" do
+ it "should build the node" do
+ subject.stub(:create) { true }
+ subject.stub(:up) { true }
+ subject.stub(:provision) { true }
+
+ subject.build.should == true
+ end
+ end
+
+ describe "#demolish" do
+ it "should demolish the node" do
+ subject.stub(:destroy) { true }
+ subject.stub(:down) { true }
+ subject.stub(:deprovision) { true }
+
+ subject.demolish.should == true
+ end
+ end
+
+ describe "#recycle" do
+ it "should recycle the node" do
+ subject.stub(:demolish) { true }
+ subject.stub(:build) { true }
+
+ subject.recycle.should == true
+ end
+ end
+
+ describe "#bounce" do
+ it "should bounce the node" do
+ subject.stub(:down) { true }
+ subject.stub(:up) { true }
+
+ subject.bounce.should == true
+ end
+ end
+
end
end