summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_transcode.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-15 21:26:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-15 21:26:59 +0000
commit06a8c6e5051bc74e0c4462e529d118528c6d01c4 (patch)
tree628fb98366479f77ecdb926999b559e26ae071f5 /test/ruby/test_transcode.rb
parenteb26e9e45c90a42d9518d438c234b72662b8ad64 (diff)
downloadruby-06a8c6e5051bc74e0c4462e529d118528c6d01c4.tar.gz
ruby-06a8c6e5051bc74e0c4462e529d118528c6d01c4.tar.xz
ruby-06a8c6e5051bc74e0c4462e529d118528c6d01c4.zip
* test/ruby/test_transcode.rb (TestTranscode#test_errors):
String#encode now works without any argument. [ruby-dev:36740] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_transcode.rb')
-rw-r--r--test/ruby/test_transcode.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb
index 3ee1ff380..d46a9ce32 100644
--- a/test/ruby/test_transcode.rb
+++ b/test/ruby/test_transcode.rb
@@ -19,8 +19,6 @@ class TestTranscode < Test::Unit::TestCase
end
def test_errors
- assert_raise(ArgumentError) { 'abc'.encode }
- assert_raise(ArgumentError) { 'abc'.encode! }
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode('foo', 'bar') }
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode!('foo', 'bar') }
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.force_encoding('utf-8').encode('foo') }