diff options
Diffstat (limited to 'test/stringio/test_stringio.rb')
-rw-r--r-- | test/stringio/test_stringio.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index e443fa6c26..bf3a9eeb1b 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -674,4 +674,10 @@ class TestStringIO < Test::Unit::TestCase bug_11945 = '[ruby-core:72699] [Bug #11945]' assert_equal Encoding::ASCII_8BIT, s.external_encoding, bug_11945 end + + def test_new_block_warning + assert_warn(/does not take block/) do + StringIO.new {} + end + end end |