diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-03 08:51:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-03 08:51:29 +0000 |
commit | 4d1e32eac67cf5febd20461987259519089e1890 (patch) | |
tree | d43f2771addaa39b8f2e738f057bf779e6fb690d /test/ruby | |
parent | 37c22bd945f30a095abbf41da2507d9f740040a4 (diff) | |
download | ruby-4d1e32eac67cf5febd20461987259519089e1890.tar.gz |
Revert "Symbol refinements"
Due to assertion failures when VM_CHECK_MODE >= 2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_symbol.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 2f17db520b..36cbf4a710 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -161,32 +161,6 @@ class TestSymbol < Test::Unit::TestCase assert_equal(1, first, bug11594) end - class TestToPRocArgWithRefinements; end - def _test_to_proc_arg_with_refinements_call(&block) - block.call TestToPRocArgWithRefinements.new - end - using Module.new { - refine TestToPRocArgWithRefinements do - def hoge - :hoge - end - end - } - def test_to_proc_arg_with_refinements - assert_equal(:hoge, _test_to_proc_arg_with_refinements_call(&:hoge)) - end - - using Module.new { - refine TestToPRocArgWithRefinements do - def hoge - :hogehoge - end - end - } - def test_to_proc_arg_with_refinements_override - assert_equal(:hogehoge, _test_to_proc_arg_with_refinements_call(&:hoge)) - end - private def return_from_proc Proc.new { return 1 }.tap(&:call) end |