aboutsummaryrefslogtreecommitdiffstats
path: root/test/csv/test_features.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/csv/test_features.rb')
-rw-r--r--test/csv/test_features.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/csv/test_features.rb b/test/csv/test_features.rb
index 88e23d2f16..9ed3f98191 100644
--- a/test/csv/test_features.rb
+++ b/test/csv/test_features.rb
@@ -250,9 +250,11 @@ class TestCSVFeatures < Test::Unit::TestCase
end
end
- def test_inspect_is_ascii_8bit_encoded
+ def test_inspect_encoding_is_ascii_compatible
CSV.new("one,two,three\n1,2,3\n".encode("UTF-16BE")) do |csv|
- assert_equal("ASCII-8BIT", csv.inspect.encoding.name)
+ assert( Encoding.compatible?( Encoding.find("US-ASCII"),
+ csv.inspect.encoding ),
+ "inspect() was not ASCII compatible." )
end
end