summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 12:44:28 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 12:44:28 +0000
commit1d415019bd993eda34c205c3628945f9d3e6865a (patch)
treec3bd38dc57cde39fbd6187fe878274d9517c3a31
parent34bcba57a9c432917799d59649f311eb0794a362 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/envutil.rb2
2 files changed, 6 insertions, 1 deletions
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 <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>
* 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)