From d40767bdd4380ff87b2f22ba73de38099be1b5b5 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Tue, 23 Feb 2010 16:22:48 -0500 Subject: [PATCH] minor: test object id inspect --- test/objectid_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/objectid_test.rb b/test/objectid_test.rb index 76afa98..6cff360 100644 --- a/test/objectid_test.rb +++ b/test/objectid_test.rb @@ -48,6 +48,10 @@ class ObjectIDTest < Test::Unit::TestCase assert_equal 24, $1.length end + def test_inspect + assert_equal "ObjectID('#{@o.to_s}')", @o.inspect + end + def test_save_and_restore host = ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost' port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT