Skip to content

Commit 78ae518

Browse files
committed
Test if listCollections command is enabled instead
1 parent 25e313b commit 78ae518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/mongo/database_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@
115115
database[:users].drop
116116
end
117117

118-
it 'returns a list of the collections info', if: write_command_enabled? do
118+
it 'returns a list of the collections info', if: list_command_enabled? do
119119
expect(result).to include('users')
120120
end
121121

122-
it 'returns a list of the collections info', unless: write_command_enabled? do
122+
it 'returns a list of the collections info', unless: list_command_enabled? do
123123
expect(result).to include("#{TEST_DB}.users")
124124
end
125125
end

0 commit comments

Comments
 (0)