aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_block.rb10
-rw-r--r--bootstraptest/test_knownbug.rb7
2 files changed, 10 insertions, 7 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb
index f139c21d15..3ece21756d 100644
--- a/bootstraptest/test_block.rb
+++ b/bootstraptest/test_block.rb
@@ -497,3 +497,13 @@ assert_equal 'ok', %q{
result
end
}
+
+assert_equal "ok", %q{
+ class Bar
+ def bar; :ok; end
+ end
+ def foo
+ yield(Bar.new) if block_given?
+ end
+ foo(&:bar)
+}, '[ruby-core:14279]'
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 74981190d8..b251734cae 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -3,13 +3,6 @@
# So all tests will cause failure.
#
-assert_normal_exit %q{
- def foo(&block)
- yield if block
- end
- foo(&:bar)
-}, '[ruby-core:14279]'
-
assert_equal 'ok', %q{
open("tmp", "w") {|f| f.write "a\u00FFb" }
s = open("tmp", "r:iso-8859-1:utf-8") {|f|