diff options
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r-- | test/ruby/test_file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 41debbbb1c..01992a83d4 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -326,9 +326,9 @@ class TestFile < Test::Unit::TestCase File.open(tmp, :mode => IO::RDWR | IO::CREAT | IO::BINARY, :encoding => Encoding::ASCII_8BIT) do |x| - assert x.autoclose? + assert_predicate(x, :autoclose?) assert_equal Encoding::ASCII_8BIT, x.external_encoding - assert x.write 'hello' + x.write 'hello' x.seek 0, IO::SEEK_SET |