Skip to content

Commit 853c268

Browse files
Fix failing atlas connectivity specs (#2829)
* Fix failing atlas connectivity specs * Update spec/atlas/atlas_connectivity_spec.rb Co-authored-by: Dmitry Rybakov <[email protected]> --------- Co-authored-by: Dmitry Rybakov <[email protected]>
1 parent 60d1f69 commit 853c268

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/atlas/atlas_connectivity_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
describe 'connection to Atlas' do
1313
it 'runs ismaster successfully' do
14-
result = client.database.command(:ismaster => 1)
15-
expect(result.documents.first['ismaster']).to be true
14+
expect { client.database.command(:hello => 1) }
15+
.not_to raise_error
1616
end
1717

1818
it 'runs findOne successfully' do
19-
result = client.use(:test)['test'].find.to_a
20-
expect(result).to be_a(Array)
19+
expect { client.use(:test)['test'].find.to_a }
20+
.not_to raise_error
2121
end
2222
end
2323
end

0 commit comments

Comments
 (0)