Skip to content

Commit 876dc19

Browse files
committed
Test updates
1 parent 510c942 commit 876dc19

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

spec/mongo/client_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@
574574

575575
it 'returns a list of database names' do
576576
expect(root_authorized_client.database_names).to include(
577-
'admin', TEST_DB
577+
'admin'
578578
)
579579
end
580580
end
@@ -585,7 +585,7 @@
585585
expect(
586586
root_authorized_client.list_databases.collect do |i|
587587
i['name']
588-
end).to include('admin', TEST_DB)
588+
end).to include('admin')
589589
end
590590
end
591591
end

spec/mongo/cluster_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
context 'when the option is provided' do
7777

7878
let(:cluster) do
79-
described_class.new([ '127.0.0.1:27017' ], TEST_OPTIONS.merge(:replica_set => 'testing'))
79+
described_class.new([ '127.0.0.1:27017' ], TEST_OPTIONS.merge(:connect => :replica_set,
80+
:replica_set => 'testing'))
8081
end
8182

8283
it 'returns the name' do

spec/support/authorization.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
# Options for test suite clients.
5454
#
5555
# @since 2.0.3
56-
TEST_OPTIONS = { max_pool_size: 1,
56+
TEST_OPTIONS = { connect: CONNECT,
57+
max_pool_size: 1,
5758
write: WRITE_CONCERN,
5859
ssl: SSL }
5960

0 commit comments

Comments
 (0)