summaryrefslogtreecommitdiff
path: root/test/ruby/test_symbol.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-15 22:59:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-15 22:59:39 +0000
commit9ec940a4c9ca01d9010f657b60d7336cd3c4161c (patch)
tree9ae0a2eeba64a659b350a3f780d7a42e129adf6f /test/ruby/test_symbol.rb
parent9ffaf1405ba30700a69f081126f0f3c96a699466 (diff)
test_refinement.rb: test_symbol_proc
* test/ruby/test_refinement.rb (test_symbol_proc): move from test_symbol.rb [Feature #9451] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_symbol.rb')
-rw-r--r--test/ruby/test_symbol.rb12
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