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:
commit
c06ac31867
@ -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]])
|
||||
|
Loading…
Reference in New Issue
Block a user