spec/network_spec.rb in testlab-0.3.1 vs spec/network_spec.rb in testlab-0.4.0
- old
+ new
@@ -19,10 +19,14 @@
################################################################################
require "spec_helper"
describe TestLab::Network do
- subject { @testlab = TestLab.new(:labfile => LABFILE); @testlab.networks.first }
+ subject {
+ @ui = ZTK::UI.new(:stdout => StringIO.new, :stderr => StringIO.new)
+ @testlab = TestLab.new(:labfile => LABFILE, :ui => @ui)
+ @testlab.networks.first
+ }
describe "class" do
it "should be an instance of TestLab::Network" do
subject.should be_an_instance_of TestLab::Network