diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-14 14:02:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-14 14:02:33 +0000 |
commit | d5ae92e8a40c033769b14e0885c00d178b415529 (patch) | |
tree | 92b56bb542054c36b41a0f4b8ae4bfb58b47319b /test/ruby/test_method.rb | |
parent | 54784728772eed185e0a946c82a352897049c540 (diff) | |
download | ruby-d5ae92e8a40c033769b14e0885c00d178b415529.tar.gz |
proc.c: infect inspect result
* proc.c (method_inspect): the result should be infected by the
object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r-- | test/ruby/test_method.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 1f8b86acdc..6e201911f9 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -454,6 +454,9 @@ class TestMethod < Test::Unit::TestCase c3.class_eval { alias bar foo } m3 = c3.new.method(:bar) assert_equal("#<Method: #{c3.inspect}(#{c.inspect})#bar(foo)>", m3.inspect, bug7806) + + m.taint + assert_predicate(m.inspect, :tainted?, "inspect result should be infected") end def test_callee_top_level |