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:
parent
9d2c2c2b46
commit
b2f7e64caf
1 changed files with 4 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue