diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-15 14:56:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-15 14:56:05 +0000 |
commit | 14b8530454b1db7707c9475d027c26858eac817c (patch) | |
tree | e55f3e696ec42831ca1199eb6750303d3a94f562 /test/ruby | |
parent | 4951f3b5e308ca02435ff9328f42f8ed9b0b0246 (diff) | |
download | ruby-14b8530454b1db7707c9475d027c26858eac817c.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_symbol.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |