test/bson/object_id_test.rb in mongo-1.8.3 vs test/bson/object_id_test.rb in mongo-1.8.4.rc0

- old
+ new

@@ -68,11 +68,17 @@ assert_equal @o, o2 assert_equal @o.to_s, o2.to_s end def test_illegal_from_string - assert_raise InvalidObjectId do + assert_raise InvalidObjectId do ObjectId.from_string("") + end + end + + def test_from_string_with_object_id + assert_raise InvalidObjectId do + ObjectId.from_string(@o) end end def test_legal assert !ObjectId.legal?(nil)