Skip to content

Commit 1df04bd

Browse files
committed
Update test based on @kou suggestion
1 parent cf0cec0 commit 1df04bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/csv/test_table.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def test_to_csv_encoding
378378
CSV::Row.new(%w{A}, ["\x00\xac"]) ]
379379
table = CSV::Table.new(rows)
380380

381-
assert_equal('UTF-8', table.to_csv(encoding: 'UTF-8').encoding.to_s)
381+
assert_equal(Encoding::UTF_8, table.to_csv(encoding: 'UTF-8').encoding)
382382
assert_raises(Encoding::CompatibilityError) {table.to_csv}
383383
end
384384

0 commit comments

Comments
 (0)