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:
parent
4549056ff8
commit
a1fecc0158
2 changed files with 13 additions and 2 deletions
|
@ -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>
|
Tue May 11 09:57:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval_intern.h (rb_vm_get_sourceline): add prototype.
|
* eval_intern.h (rb_vm_get_sourceline): add prototype.
|
||||||
|
|
|
@ -3,9 +3,14 @@ require 'rake'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class Rake::TestTaskArguments < Test::Unit::TestCase
|
class Rake::TestTaskArguments < Test::Unit::TestCase
|
||||||
|
def setup
|
||||||
|
@backup = ENV.to_hash
|
||||||
|
ENV.clear
|
||||||
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
ENV.delete('rev')
|
ENV.clear
|
||||||
ENV.delete('VER')
|
@backup.each {|k, v| ENV[k] = v }
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_empty_arg_list_is_empty
|
def test_empty_arg_list_is_empty
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue