summaryrefslogtreecommitdiff
path: root/test/ruby/test_refinement.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 02:11:59 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 02:11:59 +0000
commit9e449748744cbb28ede16ecb3064e3fcb0899022 (patch)
tree9d61dc0828e816c66f91aebdf2b2ee7a4e8411f2 /test/ruby/test_refinement.rb
parent696ebcd8cafece7c0ed6407af9679699a16a5c5a (diff)
* revert r37993 to avoid SEGV in tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_refinement.rb')
-rw-r--r--test/ruby/test_refinement.rb28
1 files changed, 1 insertions, 27 deletions
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