Skip to content

Commit c06ac31

Browse files
committed
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
2 parents 8bd94b0 + f179a10 commit c06ac31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/collection_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,13 +669,13 @@ def test_ensure_index
669669

670670
@@test.ensure_index([["x", Mongo::DESCENDING]], {})
671671
assert_equal 2, @@test.index_information.keys.count
672-
assert @@test.index_information.keys.include? "x_-1"
672+
assert @@test.index_information.keys.include?("x_-1")
673673

674674
@@test.ensure_index([["x", Mongo::ASCENDING]])
675-
assert @@test.index_information.keys.include? "x_1"
675+
assert @@test.index_information.keys.include?("x_1")
676676

677677
@@test.ensure_index([["type", 1], ["date", -1]])
678-
assert @@test.index_information.keys.include? "type_1_date_-1"
678+
assert @@test.index_information.keys.include?("type_1_date_-1")
679679

680680
@@test.drop_index("x_1")
681681
assert_equal 3, @@test.index_information.keys.count
@@ -684,7 +684,7 @@ def test_ensure_index
684684

685685
@@test.ensure_index([["x", Mongo::DESCENDING]], {})
686686
assert_equal 3, @@test.index_information.keys.count
687-
assert @@test.index_information.keys.include? "x_-1"
687+
assert @@test.index_information.keys.include?("x_-1")
688688

689689
# Make sure that drop_index expires cache properly
690690
@@test.ensure_index([['a', 1]])

0 commit comments

Comments
 (0)