We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a65823 commit f46d606Copy full SHA for f46d606
spec/mongo/operation/result_spec.rb
@@ -272,4 +272,23 @@
272
end
273
274
275
+
276
+ context 'when there is a top-level Result class defined' do
277
278
+ before do
279
+ class Result
280
+ def get_result
281
+ Mongo::Client.new([DEFAULT_ADDRESS]).database.command(:ping => 1)
282
+ end
283
284
285
286
+ let(:result) do
287
+ Result.new.get_result
288
289
290
+ it 'uses the Result class of the operation' do
291
+ expect(result).to be_a(Mongo::Operation::Result)
292
293
294
0 commit comments