From 1d415019bd993eda34c205c3628945f9d3e6865a Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 25 Jan 2010 12:44:28 +0000 Subject: * 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 --- ChangeLog | 5 +++++ test/ruby/envutil.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ead7f5dbff..5ff01b2977 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 25 21:43:05 2010 Yusuke Endoh + + * test/ruby/envutil.rb: fix the check if instance method `ruby' is + defined or not. + Mon Jan 25 21:17:32 2010 Yusuke Endoh * test/ruby/test_rubyoptions.rb (test_segv_test): add a test for diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 741aa75ce3..1d9c4f6990 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -208,7 +208,7 @@ else module RbConfig @ruby = EnvUtil.rubybin class << self - undef ruby if defined?(ruby) + undef ruby if instance_methods.include?(:ruby) attr_reader :ruby end dir = File.dirname(ruby) -- cgit v1.2.3