summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-26 14:54:02 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-26 14:54:02 +0000
commit6ce499423142f45c3524a611e3b7da09eea8154e (patch)
tree793954303249527b8efb4a73c32547e41adb4c68 /test
parentbddadeeae4a5b40461c4f111038015f8c3ca8ada (diff)
suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_complex.rb2
-rw-r--r--test/ruby/test_rational.rb2
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