minor: don't need the call to 'first' here

This commit is contained in:
Mike Dirolf 2009-12-02 10:25:46 -05:00
parent 86d517adf4
commit 6cfae57738
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class BSONTest < Test::Unit::TestCase
if RUBY_VERSION < '1.9'
require 'iconv'
def test_invalid_string
string = Iconv.conv('iso-8859-1', 'utf-8', 'aé').first
string = Iconv.conv('iso-8859-1', 'utf-8', 'aé')
doc = {'doc' => string}
assert_raise InvalidStringEncoding do
BSON.serialize(doc)