spec/node_spec.rb in testlab-1.3.1 vs spec/node_spec.rb in testlab-1.3.2

- old
+ new

@@ -69,33 +69,41 @@ describe "#create" do it "should create the node" do subject.instance_variable_get(:@provider).stub(:create) { true } subject.stub(:state) { :not_created } + subject.stub(:provisioners) { Array.new } + subject.create end end describe "#destroy" do it "should destroy the node" do subject.instance_variable_get(:@provider).stub(:destroy) { true } subject.stub(:state) { :stopped } + subject.stub(:provisioners) { Array.new } + subject.destroy end end describe "#up" do it "should online the node" do subject.instance_variable_get(:@provider).stub(:up) { true } subject.stub(:state) { :stopped } + subject.stub(:provisioners) { Array.new } + subject.up end end describe "#down" do it "should offline the node" do subject.instance_variable_get(:@provider).stub(:down) { true } subject.stub(:state) { :running } + subject.stub(:provisioners) { Array.new } + subject.down end end describe "provision" do