aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_eval.rb2
-rw-r--r--test/ruby/test_lambda.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb
index 6b3fea7bb4..273b3172b9 100644
--- a/test/ruby/test_eval.rb
+++ b/test/ruby/test_eval.rb
@@ -146,7 +146,7 @@ class TestEval < Test::Unit::TestCase
assert_nothing_raised {
def temporally_method_for_test_eval_and_define_method(&block)
lambda {
- class << Object.new; self end.__send__(:define_method, :zzz, &block)
+ class << Object.new; self end.fcall(:define_method, :zzz, &block)
}
end
v = eval("temporally_method_for_test_eval_and_define_method {}")
diff --git a/test/ruby/test_lambda.rb b/test/ruby/test_lambda.rb
index 0173bead11..d65ab7667f 100644
--- a/test/ruby/test_lambda.rb
+++ b/test/ruby/test_lambda.rb
@@ -38,7 +38,7 @@ class TestLambdaParameters < Test::Unit::TestCase
assert_equal(1, ->(&b){ b.call }.call { 1 })
b = nil
assert_equal(1, ->(&b){ b.call }.call { 1 })
- assert_not_nil(b)
+ assert_nil(b)
end
def foo