Merge pull request #67 from myers/fix-for-warnings-in-ruby-1.8.6

minor: test suite fixed for warnings when running in 1.8.6
This commit is contained in:
Kyle Banker 2011-11-28 10:34:48 -08:00
commit c06ac31867

View File

@ -669,13 +669,13 @@ class TestCollection < Test::Unit::TestCase
@@test.ensure_index([["x", Mongo::DESCENDING]], {})
assert_equal 2, @@test.index_information.keys.count
assert @@test.index_information.keys.include? "x_-1"
assert @@test.index_information.keys.include?("x_-1")
@@test.ensure_index([["x", Mongo::ASCENDING]])
assert @@test.index_information.keys.include? "x_1"
assert @@test.index_information.keys.include?("x_1")
@@test.ensure_index([["type", 1], ["date", -1]])
assert @@test.index_information.keys.include? "type_1_date_-1"
assert @@test.index_information.keys.include?("type_1_date_-1")
@@test.drop_index("x_1")
assert_equal 3, @@test.index_information.keys.count
@ -684,7 +684,7 @@ class TestCollection < Test::Unit::TestCase
@@test.ensure_index([["x", Mongo::DESCENDING]], {})
assert_equal 3, @@test.index_information.keys.count
assert @@test.index_information.keys.include? "x_-1"
assert @@test.index_information.keys.include?("x_-1")
# Make sure that drop_index expires cache properly
@@test.ensure_index([['a', 1]])