1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

lib/test/unit.rb: initialize ivar

* lib/test/unit.rb (Test::Unit::Runner#del_status_line): initialize
  @status_line_size if needed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-06-22 12:45:08 +00:00
parent 5e06b53953
commit 6e4c82607b

View file

@ -396,6 +396,7 @@ module Test
end
def del_status_line
@status_line_size ||= 0
return unless @options[:job_status] == :replace
print "\r"+" "*@status_line_size+"\r"
$stdout.flush