spec/network_spec.rb in testlab-0.6.5 vs spec/network_spec.rb in testlab-0.6.6

- old
+ new

@@ -106,30 +106,34 @@ end end describe "#create" do it "should create the network bridge" do + subject.stub(:state) { :not_created } subject.node.ssh.stub(:exec) { true } subject.create end end describe "#destroy" do it "should destroy the network bridge" do + subject.stub(:state) { :stopped } subject.node.ssh.stub(:exec) { true } subject.destroy end end describe "#up" do it "should online the network bridge" do + subject.stub(:state) { :stopped } subject.node.ssh.stub(:exec) { true } subject.up end end describe "#down" do it "should offline the network bridge" do + subject.stub(:state) { :running } subject.node.ssh.stub(:exec) { true } subject.down end end