Sha256: d41fa9ee18620785e70ed2a605f1f711e0e876e11927680f167514d71ef5b95c
Contents?: true
Size: 1.22 KB
Versions: 7
Compression:
Stored size: 1.22 KB
Contents
require 'spec_helper' describe 'CRUD' do CRUD_TESTS.each do |file| spec = Mongo::CRUD::Spec.new(file) context(spec.description) do spec.tests.each do |test| context(test.description) do before(:each) do authorized_collection.find.delete_many end after(:each) do authorized_collection.find.delete_many end let(:results) do test.run(authorized_collection) end it "returns the correct result" do skip 'Test results only match with server version >= 2.6' if test.requires_2_6?(write_command_enabled?, authorized_collection) expect(results).to eq(test.result) end it 'has the correct data in the collection' do skip 'Test results only match with server version >= 2.6' if test.requires_2_6?(write_command_enabled?, authorized_collection) expect(test.run(authorized_collection)).to match_collection_data(test) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems