Sha256: cfd184e56293c96b5e5989ed87d123bd3934fade848f5f4324260904327f4c77
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 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["#{@search.source.to_s.capitalize}.Count"].should == 10 end it "should be able to specify the page number" do @search.page(3) @search.query["#{@search.source.to_s.capitalize}.Offset"].should == 20 * 2 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
binged-0.3.0 | spec/support/shared_examples/pageable.rb |
binged-0.2.0 | spec/support/shared_examples/pageable.rb |