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:
parent
5e06b53953
commit
6e4c82607b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue