From 9e449748744cbb28ede16ecb3064e3fcb0899022 Mon Sep 17 00:00:00 2001 From: shugo Date: Fri, 30 Nov 2012 02:11:59 +0000 Subject: * revert r37993 to avoid SEGV in tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_refinement.rb | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb index 3b8a0cd658..3ca00ed912 100644 --- a/test/ruby/test_refinement.rb +++ b/test/ruby/test_refinement.rb @@ -726,6 +726,7 @@ class TestRefinement < Test::Unit::TestCase end def test_inline_method_cache + skip "can't implement efficiently with the current implementation of refinements" c = InlineMethodCache::C.new f = Proc.new { c.foo } assert_equal("original", f.call) @@ -821,31 +822,4 @@ class TestRefinement < Test::Unit::TestCase end end end - - module RedifineRefinedMethod - class C - def foo - "original" - end - end - - module M - refine C do - def foo - "refined" - end - end - end - - class C - def foo - "redefined" - end - end - end - - def test_redefine_refined_method - c = RedifineRefinedMethod::C.new - assert_equal("refined", RedifineRefinedMethod::M.module_eval { c.foo }) - end end -- cgit v1.2.3