* test/ruby/envutil.rb: fix the check if instance method `ruby' is

defined or not.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-01-25 12:44:28 +00:00
parent 34bcba57a9
commit 1d415019bd
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 25 21:43:05 2010 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/envutil.rb: fix the check if instance method `ruby' is
defined or not.
Mon Jan 25 21:17:32 2010 Yusuke Endoh <mame@tsg.ne.jp> Mon Jan 25 21:17:32 2010 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_rubyoptions.rb (test_segv_test): add a test for * test/ruby/test_rubyoptions.rb (test_segv_test): add a test for

View File

@ -208,7 +208,7 @@ else
module RbConfig module RbConfig
@ruby = EnvUtil.rubybin @ruby = EnvUtil.rubybin
class << self class << self
undef ruby if defined?(ruby) undef ruby if instance_methods.include?(:ruby)
attr_reader :ruby attr_reader :ruby
end end
dir = File.dirname(ruby) dir = File.dirname(ruby)