minor: test object id inspect

This commit is contained in:
Kyle Banker 2010-02-23 16:22:48 -05:00
parent 15ee9530ed
commit d40767bdd4

View File

@ -48,6 +48,10 @@ class ObjectIDTest < Test::Unit::TestCase
assert_equal 24, $1.length assert_equal 24, $1.length
end end
def test_inspect
assert_equal "ObjectID('#{@o.to_s}')", @o.inspect
end
def test_save_and_restore def test_save_and_restore
host = ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost' host = ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost'
port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT