diff options
author | Samuel Williams <[email protected]> | 2022-12-08 18:19:53 +1300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-08 18:19:53 +1300 |
commit | 6fd5d2dc003bda5ce0685abd2b975d7ac7079d46 (patch) | |
tree | a7cffd3b1b2f40b76511d785b5c00f3d35245ee6 /test/ruby/test_file.rb | |
parent | b2764752b2bccb8e4574891d380d0f0a3d67add0 (diff) |
Introduce `IO.new(..., path:)` and promote `File#path` to `IO#path`. (#6867)
Notes
Notes:
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r-- | test/ruby/test_file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 669b004b83..409d21fc4e 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -527,7 +527,7 @@ class TestFile < Test::Unit::TestCase io.write "foo" io.flush assert_equal 3, io.size - assert_raise(IOError) { io.path } + assert_nil io.path ensure io&.close end |