diff options
Diffstat (limited to 'test/csv/test_table.rb')
| -rw-r--r-- | test/csv/test_table.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/csv/test_table.rb b/test/csv/test_table.rb index 3c3cb1c15..d0b4d1010 100644 --- a/test/csv/test_table.rb +++ b/test/csv/test_table.rb @@ -400,7 +400,9 @@ class TestCSVTable < Test::Unit::TestCase assert(str.include?("mode:#{@table.mode}"), "Mode not shown.") end - def test_inspect_is_us_ascii_encoded - assert_equal("US-ASCII", @table.inspect.encoding.name) + def test_inspect_encoding_is_ascii_compatible + assert( Encoding.compatible?( Encoding.find("US-ASCII"), + @table.inspect.encoding ), + "inspect() was not ASCII compatible." ) end end |
