diff options
| -rw-r--r-- | test/t/syntax.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb index 83243a99f..159b36574 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -262,7 +262,7 @@ assert('parenthesed do-block in cmdarg') do end end x = ParenDoBlockCmdArg.new - result = x.test (proc do :ok; end) + result = x.test (Proc.new do :ok; end) assert_equal :ok, result end @@ -291,5 +291,5 @@ assert('optional argument in the rhs default expressions') do end assert('optional block argument in the rhs default expressions') do - assert_nil(proc {|foo = foo| foo}.call) + assert_nil(Proc.new {|foo = foo| foo}.call) end |
