Skip to content

Commit

Permalink
Fix failing atlas connectivity specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Jan 24, 2024
1 parent 60d1f69 commit 8f635ef
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(:ismaster => 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 8f635ef

Please # to comment.