Skip to content

Commit f179a10

Browse files
committed
fix for warnings when running in 1.8.6
1 parent 1da5778 commit f179a10

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
@@ -660,13 +660,13 @@ def test_ensure_index
660660

661661
@@test.ensure_index([["x", Mongo::DESCENDING]], {})
662662
assert_equal 2, @@test.index_information.keys.count
663-
assert @@test.index_information.keys.include? "x_-1"
663+
assert @@test.index_information.keys.include?("x_-1")
664664

665665
@@test.ensure_index([["x", Mongo::ASCENDING]])
666-
assert @@test.index_information.keys.include? "x_1"
666+
assert @@test.index_information.keys.include?("x_1")
667667

668668
@@test.ensure_index([["type", 1], ["date", -1]])
669-
assert @@test.index_information.keys.include? "type_1_date_-1"
669+
assert @@test.index_information.keys.include?("type_1_date_-1")
670670

671671
@@test.drop_index("x_1")
672672
assert_equal 3, @@test.index_information.keys.count
@@ -675,7 +675,7 @@ def test_ensure_index
675675

676676
@@test.ensure_index([["x", Mongo::DESCENDING]], {})
677677
assert_equal 3, @@test.index_information.keys.count
678-
assert @@test.index_information.keys.include? "x_-1"
678+
assert @@test.index_information.keys.include?("x_-1")
679679

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

0 commit comments

Comments
 (0)