From e5338316c8b4442fa64ab3d592d7abd890cdcd45 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Fri, 4 Mar 2011 16:42:39 -0500 Subject: [PATCH] minor: text fix for JRuby --- test/bson/bson_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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