From 6ce499423142f45c3524a611e3b7da09eea8154e Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 26 Jan 2010 14:54:02 +0000 Subject: suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_complex.rb | 2 +- test/ruby/test_rational.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 6706b5b39f..f6d65de6de 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -7,7 +7,7 @@ class Complex_Test < Test::Unit::TestCase def setup @rational = defined?(Rational) if @rational - @keiju = Rational.instance_variable_get('@RCS_ID') + @keiju = Rational.instance_variables.include?(:@RCS_ID) end seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|") @unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0 diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb index 705f712bd3..02d8bd61ed 100644 --- a/test/ruby/test_rational.rb +++ b/test/ruby/test_rational.rb @@ -7,7 +7,7 @@ class Rational_Test < Test::Unit::TestCase def setup @complex = defined?(Complex) if @complex - @keiju = Complex.instance_variable_get('@RCS_ID') + @keiju = Complex.instance_variables.include?(:@RCS_ID) end seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|") @unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0 -- cgit v1.2.3