minor: test object id inspect
This commit is contained in:
parent
15ee9530ed
commit
d40767bdd4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user