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