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

merges r27737 from trunk into ruby_1_9_2.

--
* 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/branches/ruby_1_9_2@27832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2010-05-16 11:36:05 +00:00
parent 4549056ff8
commit a1fecc0158
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 09:57:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval_intern.h (rb_vm_get_sourceline): add prototype.

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