diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_symbol.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 3d1f45a927..1329ea22ab 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -140,6 +140,13 @@ class TestSymbol < Test::Unit::TestCase end; end + def test_to_proc_arg + assert_separately([], <<-"end;", timeout: 5.0) + def (obj = Object.new).proc(&b) b; end + assert_same(:itself.to_proc, obj.proc(&:itself)) + end; + end + def test_call o = Object.new def o.foo(x, y); x + y; end |