Test for string port value.

This commit is contained in:
Jim Menard 2009-01-29 16:58:55 -05:00
parent 8e026ebb11
commit 26738f30d4

View File

@ -123,4 +123,10 @@ class DBTest < Test::Unit::TestCase
assert_equal err, err2 assert_equal err, err2
end end
def test_text_port_number
db = DB.new('ruby-mongo-test', [[@host, @port.to_s]])
# If there is no error, all is well
db.collection('users').clear
end
end end