Sha256: ad55837f615096374053dbaec063e6b44b5b3b8dc26164957b79a252b6fbf9dc
Contents?: true
Size: 506 Bytes
Versions: 39
Compression:
Stored size: 506 Bytes
Contents
require 'spec_helper' describe Mongo::Collection::View::Explainable do let(:selector) do {} end let(:options) do {} end let(:view) do Mongo::Collection::View.new(authorized_collection, selector, options) end before do authorized_collection.delete_many end describe '#explain' do let(:explain) do view.explain end it 'executes an explain' do expect(explain[:cursor] == 'BasicCursor' || explain[:queryPlanner]).to be_truthy end end end
Version data entries
39 entries across 39 versions & 2 rubygems