summaryrefslogtreecommitdiffhomepage
path: root/test/t/syntax.rb
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-04-21 08:09:52 +0200
committercremno <[email protected]>2014-04-21 08:09:52 +0200
commit9dd28c96bb5b63a54009b3f80a64468b7f8e4a05 (patch)
tree4eb983cb018d4bc2b310f288bb3e9f41e99dcf8a /test/t/syntax.rb
parent8694654fd4245a9cd2946759a97e6766b52983c9 (diff)
downloadmruby-9dd28c96bb5b63a54009b3f80a64468b7f8e4a05.tar.gz
mruby-9dd28c96bb5b63a54009b3f80a64468b7f8e4a05.zip
tests should not depend on `mruby-proc-ext`
Diffstat (limited to 'test/t/syntax.rb')
-rw-r--r--test/t/syntax.rb4
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