diff options
Diffstat (limited to 'test/ruby/test_symbol.rb')
-rw-r--r-- | test/ruby/test_symbol.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index a135338edb..d8c91c1eea 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -435,16 +435,4 @@ class TestSymbol < Test::Unit::TestCase assert_equal str, str.to_sym.to_s assert_not_predicate(str, :frozen?, bug11721) end - - module WithRefinements - using Module.new {refine(Integer) {alias inc succ}} - def mapinc(a) - a.map(&:inc) - end - end - - def test_proc_with_refinements - obj = Object.new.extend WithRefinements - assert_equal [*1..3], obj.mapinc(0..2) - end end |