spec/network_spec.rb in testlab-1.3.1 vs spec/network_spec.rb in testlab-1.3.2
- old
+ new
@@ -110,36 +110,44 @@
describe "#create" do
it "should create the network bridge" do
subject.node.stub(:state) { :running }
subject.stub(:state) { :not_created }
subject.node.ssh.stub(:bootstrap) { true }
+ subject.stub(:provisioners) { Array.new }
+
subject.create
end
end
describe "#destroy" do
it "should destroy the network bridge" do
subject.node.stub(:state) { :running }
subject.stub(:state) { :stopped }
subject.node.ssh.stub(:bootstrap) { true }
+ subject.stub(:provisioners) { Array.new }
+
subject.destroy
end
end
describe "#up" do
it "should online the network bridge" do
subject.node.stub(:state) { :running }
subject.stub(:state) { :stopped }
subject.node.ssh.stub(:bootstrap) { true }
+ subject.stub(:provisioners) { Array.new }
+
subject.up
end
end
describe "#down" do
it "should offline the network bridge" do
subject.node.stub(:state) { :running }
subject.stub(:state) { :running }
subject.node.ssh.stub(:bootstrap) { true }
+ subject.stub(:provisioners) { Array.new }
+
subject.down
end
end
describe "#provision" do