From e33c07a6e757eed653b56b045b8a0ecff40c1533 Mon Sep 17 00:00:00 2001 From: Sebastian Henke Date: Mon, 2 Mar 2020 11:00:39 +0100 Subject: [PATCH] Use existing constant for ASCII_8BIT Co-Authored-By: John Lees-Miller --- test/output_stream_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/output_stream_test.rb b/test/output_stream_test.rb index e25fb84a..61c9ac37 100644 --- a/test/output_stream_test.rb +++ b/test/output_stream_test.rb @@ -40,7 +40,7 @@ def test_write_buffer_binmode zos.comment = TEST_ZIP.comment write_test_zip(zos) end - assert buffer.external_encoding.name === ASCII8BIT + assert_equal Encoding::ASCII_8BIT, buffer.external_encoding end def test_write_buffer_with_temp_file