Added  = StringIO.new to prevent output when running spec.