Skip to content

Commit

Permalink
Fix failing atlas connectivity specs (#2829)
Browse files Browse the repository at this point in the history
* Fix failing atlas connectivity specs

* Update spec/atlas/atlas_connectivity_spec.rb

Co-authored-by: Dmitry Rybakov <dmitry.rybakov@mongodb.com>

---------

Co-authored-by: Dmitry Rybakov <dmitry.rybakov@mongodb.com>
  • Loading branch information
jamis and comandeo-mongo authored Jan 25, 2024
1 parent 60d1f69 commit 853c268
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/atlas/atlas_connectivity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

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

it 'runs findOne successfully' do
result = client.use(:test)['test'].find.to_a
expect(result).to be_a(Array)
expect { client.use(:test)['test'].find.to_a }
.not_to raise_error
end
end
end

0 comments on commit 853c268

Please sign in to comment.