From 6cfae577388f205a84a468ccebbf97e872f8650b Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Wed, 2 Dec 2009 10:25:46 -0500 Subject: [PATCH] minor: don't need the call to 'first' here --- test/test_bson.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_bson.rb b/test/test_bson.rb index 8a11d34..726c6cf 100644 --- a/test/test_bson.rb +++ b/test/test_bson.rb @@ -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)