summaryrefslogtreecommitdiff
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r--test/ruby/test_proc.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index 2e4fd201c3..1f713f3dbc 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -1408,4 +1408,12 @@ class TestProc < Test::Unit::TestCase
m {}
end;
end
+
+ def method_for_test_proc_without_block_for_symbol
+ binding.eval('proc')
+ end
+
+ def test_proc_without_block_for_symbol
+ assert_equal('1', method_for_test_proc_without_block_for_symbol(&:to_s).call(1), '[Bug #14782]')
+ end
end