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

* test/rake/test_task_arguments.rb: makes ENV empty during tests

because ENV may change the behavior of Rake::TaskArguments.
  [ruby-core:29984]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-05-11 12:54:33 +00:00
parent 90be970018
commit cbeafa7190
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Tue May 11 21:53:18 2010 Yusuke Endoh <mame@tsg.ne.jp>
* test/rake/test_task_arguments.rb: makes ENV empty during tests
because ENV may change the behavior of Rake::TaskArguments.
[ruby-core:29984]
Tue May 11 15:14:30 2010 NARUSE, Yui <naruse@ruby-lang.org>
* enc/utf_8.c: Add new alias UTF-8-HFS for UTF8-MAC.

View file

@ -3,9 +3,14 @@ require 'rake'
######################################################################
class Rake::TestTaskArguments < Test::Unit::TestCase
def setup
@backup = ENV.to_hash
ENV.clear
end
def teardown
ENV.delete('rev')
ENV.delete('VER')
ENV.clear
@backup.each {|k, v| ENV[k] = v }
end
def test_empty_arg_list_is_empty