spec/mongo/collection/view/readable_spec.rb in mongo-2.1.0 vs spec/mongo/collection/view/readable_spec.rb in mongo-2.1.1

- old
+ new

@@ -225,9 +225,13 @@ end it 'returns the count of matching documents' do expect(view.count).to eq(1) end + + it 'returns an integer' do + expect(view.count).to be_a(Integer) + end end context 'when no selector is provided' do it 'returns the count of matching documents' do