Sha256: 0134239b675e3bbb5098bc902b4b72dcdba743c2c707740e7dabb87c90aa15f6
Contents?: true
Size: 585 Bytes
Versions: 28
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' describe Mongoid::FakeCriteria do context "with the books ['book 1', 'book 2', 'book 3', 'book 4']" do let(:books) { Mongoid::FakeCriteria.new(['book 1', 'book 2', 'book 3', 'book 4']) } describe "#limit" do the ("books.limit(2).raw") { should eql ['book 1', 'book 2'] } the ("books.limit(0).raw") { should eql ['book 1', 'book 2', 'book 3', 'book 4'] } the ("books.limit(6).raw") { should eql ['book 1', 'book 2', 'book 3', 'book 4'] } end context "#count" do the ("books.count") { should eql 4 } end end end
Version data entries
28 entries across 28 versions & 2 rubygems