summaryrefslogtreecommitdiff
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-29 05:47:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-29 05:47:21 +0000
commitf5654b4dfc881aba56535281a0979586afdf4aad (patch)
tree09b6c77a20ce31c9bd2b5e03c2f5200d413e6014 /test/ruby/test_module.rb
parent16969412b3def3661b7da4104609a770b1fbf898 (diff)
* test/ruby/test_module.rb: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 38eefc29e3..0588f46831 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -55,7 +55,7 @@ class TestModule < Test::Unit::TestCase
end
def test_CMP_0
- assert_equal -1, (String <=> Object)
+ assert_equal(-1, (String <=> Object))
assert_equal 1, (Object <=> String)
assert_nil(Array <=> String)
end
@@ -528,10 +528,10 @@ class TestModule < Test::Unit::TestCase
class << o; self; end.instance_eval { undef_method(:foo) }
end
- %w(object_id __send__ initialize).each do |m|
- assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{m}' may cause serious problems$/)
+ %w(object_id __send__ initialize).each do |n|
+ assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{n}' may cause serious problems$/)
$VERBOSE = false
- Class.new.instance_eval { undef_method(:#{m}) }
+ Class.new.instance_eval { undef_method(:#{n}) }
INPUT
end
end