diff --git a/test/bson/bson_test.rb b/test/bson/bson_test.rb index bf652d7..7bcf2aa 100644 --- a/test/bson/bson_test.rb +++ b/test/bson/bson_test.rb @@ -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