From f1bc205681578dfa102ea09353f60a215f0f228a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 15 Oct 2015 14:56:05 +0000 Subject: proc.c: void env * proc.c (rb_sym_to_proc): make void env. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_symbol.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 07b75b0024..5f8314cf35 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -137,6 +137,7 @@ class TestSymbol < Test::Unit::TestCase assert_separately([], <<-"end;", timeout: 5.0) bug11566 = '[ruby-core:70980] [Bug #11566]' assert_raise(NoMethodError, bug11566) {Proc.new(&:foo).(1)} + assert_raise(NoMethodError, bug11566) {:foo.to_proc.(1)} end; end -- cgit v1.2.3