Sha256: fbe24cf92a8e512f3c69f51508bc653116fa719b939253be9f98b4ff26684d3a
Contents?: true
Size: 290 Bytes
Versions: 3
Compression:
Stored size: 290 Bytes
Contents
share_as :AnyPageable do it "should be able to specify the number of results per page" do @search.per_page(10) @search.query["$top"].should == 10 end it "should be able to specify the page number" do @search.page(3) @search.query["$skip"].should == 20 * 2 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
binged-1.1.0 | spec/support/shared_examples/pageable.rb |
binged-1.0.1 | spec/support/shared_examples/pageable.rb |
binged-1.0.0 | spec/support/shared_examples/pageable.rb |