minor: text fix for JRuby

This commit is contained in:
Kyle Banker 2011-03-04 16:42:39 -05:00
parent e64f91e013
commit e5338316c8
1 changed files with 2 additions and 2 deletions

View File

@ -573,7 +573,7 @@ class BSONTest < Test::Unit::TestCase
@encoder.serialize({"he\0llo" => "world"}, true)
end
assert_raise_error BSON::InvalidKeyName, "$hello" do
assert_raise BSON::InvalidKeyName do
@encoder.serialize({"$hello" => "world"}, true)
end
@ -581,7 +581,7 @@ class BSONTest < Test::Unit::TestCase
@encoder.serialize({"hello" => {"$hello" => "world"}}, true)
end
assert_raise_error BSON::InvalidKeyName, ".hello" do
assert_raise BSON::InvalidKeyName do
@encoder.serialize({".hello" => "world"}, true)
end