diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_tempfile.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index 073a11e15a..e15d3f6a0c 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -294,6 +294,8 @@ puts Tempfile.new('foo').path t = tempfile("TEST", mode: IO::BINARY) if IO::BINARY.nonzero? assert(t.binmode?) + t.open + assert(t.binmode?, 'binmode after reopen') else assert_equal(0600, t.stat.mode & 0777) end |