summaryrefslogtreecommitdiff
path: root/test/ruby/envutil.rb
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 /test/ruby/envutil.rb
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
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r--test/ruby/envutil.rb2
1 files changed, 1 insertions, 1 deletions
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)