summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-21 16:40:31 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-21 16:40:31 +0900
commitdb440b82b009bbf7d8c97e6dbee0a1b880a5994b (patch)
tree4eb983cb018d4bc2b310f288bb3e9f41e99dcf8a
parent8694654fd4245a9cd2946759a97e6766b52983c9 (diff)
parent9dd28c96bb5b63a54009b3f80a64468b7f8e4a05 (diff)
downloadmruby-db440b82b009bbf7d8c97e6dbee0a1b880a5994b.tar.gz
mruby-db440b82b009bbf7d8c97e6dbee0a1b880a5994b.zip
Merge pull request #2100 from cremno/fix-tests
tests should not depend on `mruby-proc-ext`
-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