ruby-changes:15890
From: yugui <ko1@a...>
Date: Sun, 16 May 2010 20:36:35 +0900 (JST)
Subject: [ruby-changes:15890] Ruby:r27832 (ruby_1_9_2): merges r27737 from trunk into ruby_1_9_2.
yugui 2010-05-16 20:36:05 +0900 (Sun, 16 May 2010) New Revision: 27832 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27832 Log: 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] Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/test/rake/test_task_arguments.rb Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 27831) +++ ruby_1_9_2/ChangeLog (revision 27832) @@ -1,3 +1,9 @@ +Tue May 11 21:53:18 2010 Yusuke Endoh <mame@t...> + + * 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@r...> * eval_intern.h (rb_vm_get_sourceline): add prototype. Index: ruby_1_9_2/test/rake/test_task_arguments.rb =================================================================== --- ruby_1_9_2/test/rake/test_task_arguments.rb (revision 27831) +++ ruby_1_9_2/test/rake/test_task_arguments.rb (revision 27832) @@ -3,9 +3,14 @@ ###################################################################### 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/