diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-13 05:11:02 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-13 05:11:02 +0000 |
commit | bfb08c1ece75101e36caef2a87ca74a3e07e92d4 (patch) | |
tree | 0a40a5bb4e638517a9a68e3a7d5f2729ec4cd12f /test/ruby | |
parent | 3432474c906343d4a739a860c32371124def0349 (diff) | |
download | ruby-bfb08c1ece75101e36caef2a87ca74a3e07e92d4.tar.gz |
* test/ruby/test_require.rb (TestRequire#test_loaded_features_encoding):
need to check compatibility, not equality of encodings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_require.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index d3cae1e01c..bbfc6e619c 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -429,7 +429,7 @@ class TestRequire < Test::Unit::TestCase $: << tmp open(File.join(tmp, "foo.rb"), "w") {} require "foo" - assert_equal(tmp.encoding, $"[0].encoding, bug6377) + assert(Encoding.compatible?(tmp, $"[0]), bug6377) } ensure $:.replace(loadpath) |