Skip to content

Commit e33c07a

Browse files
Use existing constant for ASCII_8BIT
Co-Authored-By: John Lees-Miller <[email protected]>
1 parent b0ee268 commit e33c07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/output_stream_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_write_buffer_binmode
4040
zos.comment = TEST_ZIP.comment
4141
write_test_zip(zos)
4242
end
43-
assert buffer.external_encoding.name === ASCII8BIT
43+
assert_equal Encoding::ASCII_8BIT, buffer.external_encoding
4444
end
4545

4646
def test_write_buffer_with_temp_file

0 commit comments

Comments
 (0)