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

test_command_processor.rb: clear tmpdir

* test/shell/test_command_processor.rb (TestShell#teardown): should
  not leave temporary directories.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-11-05 08:10:32 +00:00
parent 9d2c2c2b46
commit b2f7e64caf

View file

@ -11,6 +11,10 @@ class TestShell::CommandProcessor < Test::Unit::TestCase
@shell.system_path = [@tmpdir]
end
def teardown
Dir.rmdir(@tmpdir)
end
def catch_command_start(tc = Object.new)
@shell.process_controller.singleton_class.class_eval do
define_method(:add_schedule) {|cmd| throw tc, cmd}