minor: don't need the call to 'first' here
This commit is contained in:
parent
86d517adf4
commit
6cfae57738
@ -22,7 +22,7 @@ class BSONTest < Test::Unit::TestCase
|
|||||||
if RUBY_VERSION < '1.9'
|
if RUBY_VERSION < '1.9'
|
||||||
require 'iconv'
|
require 'iconv'
|
||||||
def test_invalid_string
|
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}
|
doc = {'doc' => string}
|
||||||
assert_raise InvalidStringEncoding do
|
assert_raise InvalidStringEncoding do
|
||||||
BSON.serialize(doc)
|
BSON.serialize(doc)
|
||||||
|
Loading…
Reference in New Issue
Block a user