Test for string port value.
This commit is contained in:
parent
8e026ebb11
commit
26738f30d4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user